nixpkgs/pkgs/development/libraries/poppler/GDir-const.patch

25 lines
822 B
Diff
Raw Normal View History

diff -ur poppler-0.6.1/goo/gfile.cc poppler-0.6.1-patched/goo/gfile.cc
--- poppler-0.6.1/goo/gfile.cc 2007-09-17 20:37:39.000000000 +0200
+++ poppler-0.6.1-patched/goo/gfile.cc 2007-11-06 12:07:50.325498138 +0100
@@ -634,7 +634,7 @@
delete name;
}
-GDir::GDir(char *name, GBool doStatA) {
+GDir::GDir(const char *name, GBool doStatA) {
path = new GooString(name);
doStat = doStatA;
#if defined(WIN32)
diff -ur poppler-0.6.1/goo/gfile.h poppler-0.6.1-patched/goo/gfile.h
--- poppler-0.6.1/goo/gfile.h 2007-09-17 20:37:39.000000000 +0200
+++ poppler-0.6.1-patched/goo/gfile.h 2007-11-06 12:07:39.212878631 +0100
@@ -117,7 +117,7 @@
class GDir {
public:
- GDir(char *name, GBool doStatA = gTrue);
+ GDir(const char *name, GBool doStatA = gTrue);
~GDir();
GDirEntry *getNextEntry();
void rewind();