beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-PATCHES / patch-03-Object-functions
blob91dd77667ed9aeab8ecca60df507cc219b8ab639
1 diff -ur poppler-0.41.0.orig/poppler/Object.h poppler-0.41.0/poppler/Object.h
2 --- poppler-0.41.0.orig/poppler/Object.h        Mon Nov 16 06:05:22 2015
3 +++ poppler-0.41.0/poppler/Object.h     Wed Feb 17 15:39:51 2016
4 @@ -140,7 +140,7 @@
5    Object *initStream(Stream *streamA);
6    Object *initRef(int numA, int genA)
7      { initObj(objRef); ref.num = numA; ref.gen = genA; return this; }
8 -  Object *initCmd(char *cmdA)
9 +  Object *initCmd(const char *cmdA)
10      { initObj(objCmd); cmd = copyString(cmdA); return this; }
11    Object *initError()
12      { initObj(objError); return this; }
13 @@ -186,7 +186,7 @@
14    GBool isName(const char *nameA)
15      { return type == objName && !strcmp(name, nameA); }
16    GBool isDict(const char *dictType);
17 -  GBool isStream(char *dictType);
18 +  GBool isStream(const char *dictType);
19    GBool isCmd(const char *cmdA)
20      { return type == objCmd && !strcmp(cmd, cmdA); }
22 @@ -233,7 +233,7 @@
23    Object *dictGetValNF(int i, Object *obj);
25    // Stream accessors.
26 -  GBool streamIs(char *dictType);
27 +  GBool streamIs(const char *dictType);
28    void streamReset();
29    void streamClose();
30    int streamGetChar();
31 @@ -337,10 +337,10 @@
33  #include "Stream.h"
35 -inline GBool Object::streamIs(char *dictType)
36 +inline GBool Object::streamIs(const char *dictType)
37    { OBJECT_TYPE_CHECK(objStream); return stream->getDict()->is(dictType); }
39 -inline GBool Object::isStream(char *dictType)
40 +inline GBool Object::isStream(const char *dictType)
41    { return type == objStream && streamIs(dictType); }
43  inline void Object::streamReset()