From d2f397594803fa5729fab83684ce74184dd4fe38 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 21 Dec 2018 08:19:52 -0500 Subject: Add missing virtual destructors to all helper classes --- include/qpdf/QPDFAcroFormDocumentHelper.hh | 4 ++++ include/qpdf/QPDFAnnotationObjectHelper.hh | 4 ++++ include/qpdf/QPDFFormFieldObjectHelper.hh | 4 ++++ include/qpdf/QPDFNumberTreeObjectHelper.hh | 4 ++++ include/qpdf/QPDFPageDocumentHelper.hh | 4 ++++ include/qpdf/QPDFPageLabelDocumentHelper.hh | 4 ++++ include/qpdf/QPDFPageObjectHelper.hh | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/include/qpdf/QPDFAcroFormDocumentHelper.hh b/include/qpdf/QPDFAcroFormDocumentHelper.hh index 3297ebb3..3a308467 100644 --- a/include/qpdf/QPDFAcroFormDocumentHelper.hh +++ b/include/qpdf/QPDFAcroFormDocumentHelper.hh @@ -85,6 +85,10 @@ class QPDFAcroFormDocumentHelper: public QPDFDocumentHelper public: QPDF_DLL QPDFAcroFormDocumentHelper(QPDF&); + QPDF_DLL + virtual ~QPDFAcroFormDocumentHelper() + { + } // This class lazily creates an internal cache of the mapping // among form fields, annotations, and pages. Methods within this diff --git a/include/qpdf/QPDFAnnotationObjectHelper.hh b/include/qpdf/QPDFAnnotationObjectHelper.hh index 094d4129..e7e1a372 100644 --- a/include/qpdf/QPDFAnnotationObjectHelper.hh +++ b/include/qpdf/QPDFAnnotationObjectHelper.hh @@ -31,6 +31,10 @@ class QPDFAnnotationObjectHelper: public QPDFObjectHelper public: QPDF_DLL QPDFAnnotationObjectHelper(QPDFObjectHandle); + QPDF_DLL + virtual ~QPDFAnnotationObjectHelper() + { + } // This class provides helper methods for certain types of // annotations. At its introduction, it only supports Widget diff --git a/include/qpdf/QPDFFormFieldObjectHelper.hh b/include/qpdf/QPDFFormFieldObjectHelper.hh index 90afaad2..ec2c1f55 100644 --- a/include/qpdf/QPDFFormFieldObjectHelper.hh +++ b/include/qpdf/QPDFFormFieldObjectHelper.hh @@ -37,6 +37,10 @@ class QPDFFormFieldObjectHelper: public QPDFObjectHelper QPDFFormFieldObjectHelper(); QPDF_DLL QPDFFormFieldObjectHelper(QPDFObjectHandle); + QPDF_DLL + virtual ~QPDFFormFieldObjectHelper() + { + } QPDF_DLL bool isNull(); diff --git a/include/qpdf/QPDFNumberTreeObjectHelper.hh b/include/qpdf/QPDFNumberTreeObjectHelper.hh index be67c887..194cfbcb 100644 --- a/include/qpdf/QPDFNumberTreeObjectHelper.hh +++ b/include/qpdf/QPDFNumberTreeObjectHelper.hh @@ -41,6 +41,10 @@ class QPDFNumberTreeObjectHelper: public QPDFObjectHelper public: QPDF_DLL QPDFNumberTreeObjectHelper(QPDFObjectHandle); + QPDF_DLL + virtual ~QPDFNumberTreeObjectHelper() + { + } typedef long long int numtree_number; diff --git a/include/qpdf/QPDFPageDocumentHelper.hh b/include/qpdf/QPDFPageDocumentHelper.hh index 82ab71fa..52e03be8 100644 --- a/include/qpdf/QPDFPageDocumentHelper.hh +++ b/include/qpdf/QPDFPageDocumentHelper.hh @@ -36,6 +36,10 @@ class QPDFPageDocumentHelper: public QPDFDocumentHelper public: QPDF_DLL QPDFPageDocumentHelper(QPDF&); + QPDF_DLL + virtual ~QPDFPageDocumentHelper() + { + } // Traverse page tree, and return all /Page objects wrapped in // QPDFPageObjectHelper objects. Unlike with diff --git a/include/qpdf/QPDFPageLabelDocumentHelper.hh b/include/qpdf/QPDFPageLabelDocumentHelper.hh index a5a13ff2..9165506e 100644 --- a/include/qpdf/QPDFPageLabelDocumentHelper.hh +++ b/include/qpdf/QPDFPageLabelDocumentHelper.hh @@ -49,6 +49,10 @@ class QPDFPageLabelDocumentHelper: public QPDFDocumentHelper public: QPDF_DLL QPDFPageLabelDocumentHelper(QPDF&); + QPDF_DLL + virtual ~QPDFPageLabelDocumentHelper() + { + } QPDF_DLL bool hasPageLabels(); diff --git a/include/qpdf/QPDFPageObjectHelper.hh b/include/qpdf/QPDFPageObjectHelper.hh index 26c1566f..aa6d8ae9 100644 --- a/include/qpdf/QPDFPageObjectHelper.hh +++ b/include/qpdf/QPDFPageObjectHelper.hh @@ -34,6 +34,10 @@ class QPDFPageObjectHelper: public QPDFObjectHelper public: QPDF_DLL QPDFPageObjectHelper(QPDFObjectHandle); + QPDF_DLL + virtual ~QPDFPageObjectHelper() + { + } // Returns an empty map if there are no images or no resources. // This function does not presently support inherited resources. -- cgit v1.2.3-54-g00ecf