summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2018-04-06 09:02:28 +0200
committerAlbert Astals Cid <aacid@kde.org>2018-04-06 13:10:33 +0200
commita8e93f46df9feb7f7241826307af51befdb25d9e (patch)
tree96a80ea4ec6b47221e54292ab18a3f0da4c867b4 /test
parent07180b86786cce95df4e2433a7cf3e006749a0f5 (diff)
Make Object return const GooString pointer
This helps making sure noone is changing strings that belong to objects without us realizing. In fact noone was doing except an ifdef for windows, fixed it to not modify the dict contents anymore
Diffstat (limited to 'test')
-rw-r--r--test/pdf-fullrewrite.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pdf-fullrewrite.cc b/test/pdf-fullrewrite.cc
index eb5e1900..420a690d 100644
--- a/test/pdf-fullrewrite.cc
+++ b/test/pdf-fullrewrite.cc
@@ -162,8 +162,8 @@ static GBool compareObjects(Object *objA, Object *objB)
if (objB->getType() != objString) {
return gFalse;
} else {
- GooString *strA = objA->getString();
- GooString *strB = objB->getString();
+ const GooString *strA = objA->getString();
+ const GooString *strB = objB->getString();
return (strA->cmp(strB) == 0);
}
}