$OpenBSD: patch-Applications_Cxx_gdcmpdf_cxx,v 1.5 2020/02/17 20:34:11 kili Exp $

Fix build with poppler-0.83.0 and -0.85.0.

Index: Applications/Cxx/gdcmpdf.cxx
--- Applications/Cxx/gdcmpdf.cxx.orig
+++ Applications/Cxx/gdcmpdf.cxx
@@ -106,7 +106,7 @@ static std::string getInfoDate(Dict *infoDict, const c
   return out;
 }
 
-static std::string getInfoString(Dict *infoDict, const char *key, UnicodeMap *uMap, bool & unicode)
+static std::string getInfoString(Dict *infoDict, const char *key, const UnicodeMap *uMap, bool & unicode)
 {
   Object obj;
 #ifdef LIBPOPPLER_GOOSTRING_HAS_CONSTGETCHAR
@@ -333,13 +333,13 @@ int main (int argc, char *argv[])
   GooString *fileName;
   PDFDoc *doc;
   Object info;
-  UnicodeMap *uMap;
+  const UnicodeMap *uMap;
   ownerPW = NULL;
   userPW = NULL;
 #ifdef LIBPOPPLER_GLOBALPARAMS_CSTOR_HAS_PARAM
   globalParams = new GlobalParams(0);
 #else
-  globalParams = new GlobalParams();
+  globalParams = std::make_unique<GlobalParams>();
 #endif
   uMap = globalParams->getTextEncoding();
 
