aboutsummaryrefslogtreecommitdiff
path: root/graphics/gdal/files/patch-frmts-pdf-pdfobject.cpp
blob: c567af323cd92b2501484a69aa2ad1567f25bf63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- frmts/pdf/pdfobject.cpp.orig	2021-04-27 09:12:27 UTC
+++ frmts/pdf/pdfobject.cpp
@@ -1082,7 +1082,7 @@ const CPLString& GDALPDFObjectPoppler::GetString()
         return (osStr = GDALPDFGetUTF8StringFromBytes(reinterpret_cast<const GByte*>(gooString->c_str()),
                                                       static_cast<int>(gooString->getLength())));
 #else
-        return (osStr = GDALPDFGetUTF8StringFromBytes(reinterpret_cast<const GByte*>(gooString->getCString()),
+        return (osStr = GDALPDFGetUTF8StringFromBytes(reinterpret_cast<const GByte*>(gooString->c_str()),
                                                       static_cast<int>(gooString->getLength())));
 #endif
     }
@@ -1442,7 +1442,7 @@ static char* GooStringToCharStart(GooString& gstr)
 #if (POPPLER_MAJOR_VERSION >= 1 || POPPLER_MINOR_VERSION >= 72)
             const char* srcStr = gstr.c_str();
 #else
-            const char* srcStr = gstr.getCString();
+            const char* srcStr = gstr.c_str();
 #endif
             memcpy(pszContent, srcStr, nLength);
             pszContent[nLength] = '\0';