summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
diff options
context:
space:
mode:
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;
}