Commit d2f397594803fa5729fab83684ce74184dd4fe38

Authored by Jay Berkenbilt
1 parent cc500eda

Add missing virtual destructors to all helper classes

include/qpdf/QPDFAcroFormDocumentHelper.hh
... ... @@ -85,6 +85,10 @@ class QPDFAcroFormDocumentHelper: public QPDFDocumentHelper
85 85 public:
86 86 QPDF_DLL
87 87 QPDFAcroFormDocumentHelper(QPDF&);
  88 + QPDF_DLL
  89 + virtual ~QPDFAcroFormDocumentHelper()
  90 + {
  91 + }
88 92  
89 93 // This class lazily creates an internal cache of the mapping
90 94 // among form fields, annotations, and pages. Methods within this
... ...
include/qpdf/QPDFAnnotationObjectHelper.hh
... ... @@ -31,6 +31,10 @@ class QPDFAnnotationObjectHelper: public QPDFObjectHelper
31 31 public:
32 32 QPDF_DLL
33 33 QPDFAnnotationObjectHelper(QPDFObjectHandle);
  34 + QPDF_DLL
  35 + virtual ~QPDFAnnotationObjectHelper()
  36 + {
  37 + }
34 38  
35 39 // This class provides helper methods for certain types of
36 40 // annotations. At its introduction, it only supports Widget
... ...
include/qpdf/QPDFFormFieldObjectHelper.hh
... ... @@ -37,6 +37,10 @@ class QPDFFormFieldObjectHelper: public QPDFObjectHelper
37 37 QPDFFormFieldObjectHelper();
38 38 QPDF_DLL
39 39 QPDFFormFieldObjectHelper(QPDFObjectHandle);
  40 + QPDF_DLL
  41 + virtual ~QPDFFormFieldObjectHelper()
  42 + {
  43 + }
40 44  
41 45 QPDF_DLL
42 46 bool isNull();
... ...
include/qpdf/QPDFNumberTreeObjectHelper.hh
... ... @@ -41,6 +41,10 @@ class QPDFNumberTreeObjectHelper: public QPDFObjectHelper
41 41 public:
42 42 QPDF_DLL
43 43 QPDFNumberTreeObjectHelper(QPDFObjectHandle);
  44 + QPDF_DLL
  45 + virtual ~QPDFNumberTreeObjectHelper()
  46 + {
  47 + }
44 48  
45 49 typedef long long int numtree_number;
46 50  
... ...
include/qpdf/QPDFPageDocumentHelper.hh
... ... @@ -36,6 +36,10 @@ class QPDFPageDocumentHelper: public QPDFDocumentHelper
36 36 public:
37 37 QPDF_DLL
38 38 QPDFPageDocumentHelper(QPDF&);
  39 + QPDF_DLL
  40 + virtual ~QPDFPageDocumentHelper()
  41 + {
  42 + }
39 43  
40 44 // Traverse page tree, and return all /Page objects wrapped in
41 45 // QPDFPageObjectHelper objects. Unlike with
... ...
include/qpdf/QPDFPageLabelDocumentHelper.hh
... ... @@ -49,6 +49,10 @@ class QPDFPageLabelDocumentHelper: public QPDFDocumentHelper
49 49 public:
50 50 QPDF_DLL
51 51 QPDFPageLabelDocumentHelper(QPDF&);
  52 + QPDF_DLL
  53 + virtual ~QPDFPageLabelDocumentHelper()
  54 + {
  55 + }
52 56  
53 57 QPDF_DLL
54 58 bool hasPageLabels();
... ...
include/qpdf/QPDFPageObjectHelper.hh
... ... @@ -34,6 +34,10 @@ class QPDFPageObjectHelper: public QPDFObjectHelper
34 34 public:
35 35 QPDF_DLL
36 36 QPDFPageObjectHelper(QPDFObjectHandle);
  37 + QPDF_DLL
  38 + virtual ~QPDFPageObjectHelper()
  39 + {
  40 + }
37 41  
38 42 // Returns an empty map if there are no images or no resources.
39 43 // This function does not presently support inherited resources.
... ...