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.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
index d35e4645..db403c5e 100644
--- a/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
+++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
@@ -42,7 +42,12 @@ namespace Poppler {
Document *Document::load(const TQString &filePath)
{
if (!globalParams) {
- globalParams = new GlobalParams();
+ globalParams =
+#if defined(HAVE_POPPLER_083)
+ std::make_unique<GlobalParams>();
+#else
+ new GlobalParams();
+#endif
}
DocumentData *doc = new DocumentData(new GooString(TQFile::encodeName(filePath)), NULL);