summaryrefslogtreecommitdiff
blob: 47c969bdcc555b2469c9240d27788c6f4564ddf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- kword-1.6.3_p20090204-orig/work/kword-1.6.3_p20090519/filters/kword/pdf/xpdf/goo/gfile.cc	2009-05-25 15:51:25.000000000 +0100
+++ kword-1.6.3_p20090204/work/kword-1.6.3_p20090519/filters/kword/pdf/xpdf/goo/gfile.cc	2009-05-25 15:51:20.000000000 +0100
@@ -277,7 +277,7 @@
 GString *grabPath(const char *fileName) {
 #ifdef VMS
   //---------- VMS ----------
-  char *p;
+  const char *p;
 
   if ((p = strrchr(fileName, ']')))
     return new GString(fileName, p + 1 - fileName);
@@ -287,7 +287,7 @@
 
 #elif defined(__EMX__) || defined(WIN32)
   //---------- OS/2+EMX and Win32 ----------
-  char *p;
+  const char *p;
 
   if ((p = strrchr(fileName, '/')))
     return new GString(fileName, p - fileName);
@@ -300,7 +300,7 @@
 
 #elif defined(ACORN)
   //---------- RISCOS ----------
-  char *p;
+  const char *p;
 
   if ((p = strrchr(fileName, '.')))
     return new GString(fileName, p - fileName);
@@ -307,7 +307,7 @@
 
 #elif defined(MACOS)
   //---------- MacOS ----------
-  char *p;
+  const char *p;
 
   if ((p = strrchr(fileName, ':')))
     return new GString(fileName, p - fileName);
@@ -315,7 +315,7 @@
 
 #else
   //---------- Unix ----------
-  char *p;
+  const char *p;
 
   if ((p = strrchr(fileName, '/')))
     return new GString(fileName, p - fileName);