From 651b51f0564d7726df09faf6ac0a0dd36e4fa65a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 4 Aug 2018 20:08:06 -0400 Subject: [PATCH] Add QPDF_DLL to public destructors (fixes #220) A few public destructors were missing QPDF_DLL, which could cause some Windows applications to fail to link. --- include/qpdf/Pl_QPDFTokenizer.hh | 5 +++++ include/qpdf/QPDF.hh | 1 + include/qpdf/QPDFObject.hh | 1 + include/qpdf/QPDFWriter.hh | 1 + 4 files changed, 8 insertions(+) diff --git a/include/qpdf/Pl_QPDFTokenizer.hh b/include/qpdf/Pl_QPDFTokenizer.hh index 65dc7919..7542b525 100644 --- a/include/qpdf/Pl_QPDFTokenizer.hh +++ b/include/qpdf/Pl_QPDFTokenizer.hh @@ -44,11 +44,15 @@ class Pl_QPDFTokenizer: public Pipeline // Whatever pipeline is provided as "next" will be set as the // pipeline that the token filter writes to. If next is not // provided, any output written by the filter will be discarded. + QPDF_DLL Pl_QPDFTokenizer(char const* identifier, QPDFObjectHandle::TokenFilter* filter, Pipeline* next = 0); + QPDF_DLL virtual ~Pl_QPDFTokenizer(); + QPDF_DLL virtual void write(unsigned char* buf, size_t len); + QPDF_DLL virtual void finish(); private: @@ -60,6 +64,7 @@ class Pl_QPDFTokenizer: public Pipeline friend class Pl_QPDFTokenizer; public: + QPDF_DLL ~Members(); private: diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 681d233c..0c439af8 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -1152,6 +1152,7 @@ class QPDF friend class QPDF; public: + QPDF_DLL ~Members(); private: diff --git a/include/qpdf/QPDFObject.hh b/include/qpdf/QPDFObject.hh index da54c027..ca2bf4b4 100644 --- a/include/qpdf/QPDFObject.hh +++ b/include/qpdf/QPDFObject.hh @@ -100,6 +100,7 @@ class QPDFObject { friend class QPDFObject; public: + QPDF_DLL ~Members(); private: Members(); diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index 1802078a..4a2c34f9 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -530,6 +530,7 @@ class QPDFWriter friend class QPDFWriter; public: + QPDF_DLL ~Members(); private: