Since the string argument of Object::isStream and Object::streamIs is not modified it should be declared as const.
Signed-off-by: Peter Breitenlohner <[email protected]> --- poppler/Object.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/poppler/Object.h b/poppler/Object.h index 1b06a3c..90f3258 100644 --- a/poppler/Object.h +++ b/poppler/Object.h @@ -186,7 +186,7 @@ public: GBool isName(const char *nameA) { return type == objName && !strcmp(name, nameA); } GBool isDict(const char *dictType); - GBool isStream(char *dictType); + GBool isStream(const char *dictType); GBool isCmd(const char *cmdA) { return type == objCmd && !strcmp(cmd, cmdA); } @@ -233,7 +233,7 @@ public: Object *dictGetValNF(int i, Object *obj); // Stream accessors. - GBool streamIs(char *dictType); + GBool streamIs(const char *dictType); void streamReset(); void streamClose(); int streamGetChar(); @@ -337,10 +337,10 @@ inline Object *Object::dictGetValNF(int i, Object *obj) #include "Stream.h" -inline GBool Object::streamIs(char *dictType) +inline GBool Object::streamIs(const char *dictType) { OBJECT_TYPE_CHECK(objStream); return stream->getDict()->is(dictType); } -inline GBool Object::isStream(char *dictType) +inline GBool Object::isStream(const char *dictType) { return type == objStream && streamIs(dictType); } inline void Object::streamReset() -- 2.1.4 _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
