diff options
Diffstat (limited to 'support/extractpdfmark/src/poppler-cpp/poppler-cpp.hh')
-rw-r--r-- | support/extractpdfmark/src/poppler-cpp/poppler-cpp.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/support/extractpdfmark/src/poppler-cpp/poppler-cpp.hh b/support/extractpdfmark/src/poppler-cpp/poppler-cpp.hh index 3f9e0f9f0a..b077478bd5 100644 --- a/support/extractpdfmark/src/poppler-cpp/poppler-cpp.hh +++ b/support/extractpdfmark/src/poppler-cpp/poppler-cpp.hh @@ -18,6 +18,7 @@ #ifndef INCLUDE_GUARD_POPPLER_CPP_HH #define INCLUDE_GUARD_POPPLER_CPP_HH +#include <memory> #include <string> #include <poppler-destination.h> #include <poppler-document.h> @@ -36,7 +37,7 @@ private: std::string walk (const std::string &name, const poppler::destination &dest); - poppler::document *doc = nullptr; + std::unique_ptr<poppler::document> doc; }; #endif // INCLUDE_GUARD_POPPLER_CPP_HH |