summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-01-03 18:52:32 +0100
committerSlávek Banko <[email protected]>2019-01-03 18:52:53 +0100
commit9d3faa503909ee34a6963172e6f8725a12f554b1 (patch)
tree54aac0d8adf3ed9f24a2e0b423940540b6879c04 /tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
parent5f777126eada93dc139ea0f0e8c9169d541edbbb (diff)
downloadtdegraphics-9d3faa503909ee34a6963172e6f8725a12f554b1.tar.gz
tdegraphics-9d3faa503909ee34a6963172e6f8725a12f554b1.zip
Add support for Poppler >= 0.71.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit aa4563ad7056949864cc41f9088626523d79f5ab)
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc')
-rw-r--r--tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
index 9584b104..f05816df 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
@@ -33,7 +33,9 @@
#include <DateInfo.h>
#include "poppler-private.h"
+#if !defined(HAVE_POPPLER_071)
#undef bool
+#endif
namespace Poppler {
@@ -141,7 +143,11 @@ bool Document::scanForFonts( int numPages, TQValueList<FontInfo> *fontList ) con
(Poppler::FontInfo::Type)((::FontInfo*)items->get(i))->getType());
fontList->append(font);
}
+# if defined(HAVE_POPPLER_070)
+ deleteGooList<::FontInfo>(items);
+# else
deleteGooList(items, ::FontInfo);
+# endif
return true;
}