]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
GooString needs to be const since >=poppler-0.64.0 51/head
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 20 Jul 2018 13:20:11 +0000 (15:20 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 20 Jul 2018 13:20:11 +0000 (15:20 +0200)
This only fails with >=poppler-0.67.0 but the change to const was done
in 0.64.0

filter/pdf.cxx

index 206ccf883ed54e33358c6184d7f13906c4912d44..665eab09574de0500a64d85b299e4ec600aeaf73 100644 (file)
@@ -734,6 +734,9 @@ extern "C" int pdf_fill_form(pdf_t *doc, opt_t *opt)
         }
 
         FormField *ff = fm_text->getField();
+#if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 64
+        const
+#endif
         GooString *field_name;
         field_name = ff->getFullyQualifiedName();
         if ( ! field_name )