summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
diff options
context:
space:
mode:
authorOBATA Akio <[email protected]>2020-01-13 17:02:28 +0900
committerSlávek Banko <[email protected]>2020-02-02 20:54:36 +0100
commit36b59176febd889d36c3ed63f058150f96226712 (patch)
treeab166dc820d47467a3766c0aa676b64919c88849 /tdefile-plugins/dependencies/poppler-tqt/poppler-document.cc
parentd8f7228782b3856e06f8df31220b588a300404bb (diff)
downloadtdegraphics-36b59176febd889d36c3ed63f058150f96226712.tar.gz
tdegraphics-36b59176febd889d36c3ed63f058150f96226712.zip
Add support for Poppler >= 0.83
Follow change "Make globalParams a std::unique_ptr" Signed-off-by: OBATA Akio <[email protected]> (cherry picked from commit 7e349b852ed28ad8b39a4c42adab1c7d3f9dbccb)
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);