]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/goo/GString.cc
Completely synched with Xpdf 0.90
[evince.git] / pdf / goo / GString.cc
index e0890912d5b495a1ecb6a7c84d1f0023ddde094b..6225932c7895120e248172e2c3f110128d86e680 100644 (file)
@@ -44,7 +44,7 @@ GString::GString() {
   s[0] = '\0';
 }
 
-GString::GString(char *s1) {
+GString::GString(const char *s1) {
   int n = strlen(s1);
 
   s = NULL;
@@ -52,7 +52,7 @@ GString::GString(char *s1) {
   memcpy(s, s1, n + 1);
 }
 
-GString::GString(char *s1, int length1) {
+GString::GString(const char *s1, int length1) {
   s = NULL;
   resize(length = length1);
   memcpy(s, s1, length * sizeof(char));