2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-28 16:00:53 +00:00

Add missing virtual destructors to all helper classes

This commit is contained in:
Jay Berkenbilt 2018-12-21 08:19:52 -05:00
parent cc500eda91
commit d2f3975948
7 changed files with 28 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -37,6 +37,10 @@ class QPDFFormFieldObjectHelper: public QPDFObjectHelper
QPDFFormFieldObjectHelper();
QPDF_DLL
QPDFFormFieldObjectHelper(QPDFObjectHandle);
QPDF_DLL
virtual ~QPDFFormFieldObjectHelper()
{
}
QPDF_DLL
bool isNull();

View File

@ -41,6 +41,10 @@ class QPDFNumberTreeObjectHelper: public QPDFObjectHelper
public:
QPDF_DLL
QPDFNumberTreeObjectHelper(QPDFObjectHandle);
QPDF_DLL
virtual ~QPDFNumberTreeObjectHelper()
{
}
typedef long long int numtree_number;

View File

@ -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

View File

@ -49,6 +49,10 @@ class QPDFPageLabelDocumentHelper: public QPDFDocumentHelper
public:
QPDF_DLL
QPDFPageLabelDocumentHelper(QPDF&);
QPDF_DLL
virtual ~QPDFPageLabelDocumentHelper()
{
}
QPDF_DLL
bool hasPageLabels();

View File

@ -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.