summaryrefslogtreecommitdiff
path: root/xfa/src/fdp/include/fde_xml.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-06-19 14:58:28 -0700
committerLei Zhang <thestig@chromium.org>2015-06-19 14:58:28 -0700
commit568aff520b4ca33d851317a4ea88807b4fd2da40 (patch)
tree02c6409057908381d36efcd556dd8082044d5509 /xfa/src/fdp/include/fde_xml.h
parentc49828916f5b0766f8d6f0fd5bf0a6cc5bd3c1ec (diff)
downloadpdfium-568aff520b4ca33d851317a4ea88807b4fd2da40.tar.xz
Fix -Wnon-virtual-dtor warnings on the XFA branch.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1183483003.
Diffstat (limited to 'xfa/src/fdp/include/fde_xml.h')
-rw-r--r--xfa/src/fdp/include/fde_xml.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xfa/src/fdp/include/fde_xml.h b/xfa/src/fdp/include/fde_xml.h
index 2ffa30c0fd..03f6438ed4 100644
--- a/xfa/src/fdp/include/fde_xml.h
+++ b/xfa/src/fdp/include/fde_xml.h
@@ -43,9 +43,11 @@ FX_BOOL FDE_IsXMLNameChar(FX_WCHAR ch, FX_BOOL bFirstChar);
#ifdef __cplusplus
}
#endif
+
class IFDE_XMLNode
{
public:
+ virtual ~IFDE_XMLNode() {}
virtual void Release() = 0;
virtual FDE_XMLNODETYPE GetType() const = 0;
virtual int32_t CountChildNodes() const = 0;
@@ -119,6 +121,7 @@ class IFDE_XMLCharData : public IFDE_XMLDeclaration
{
public:
static IFDE_XMLCharData* Create(const CFX_WideString &wsCData);
+ virtual ~IFDE_XMLCharData() {}
virtual void GetCharData(CFX_WideString &wsCData) const = 0;
virtual void SetCharData(const CFX_WideString &wsCData) = 0;
@@ -136,6 +139,7 @@ class IFDE_XMLDoc
{
public:
static IFDE_XMLDoc* Create();
+ virtual ~IFDE_XMLDoc() {}
virtual void Release() = 0;
virtual FX_BOOL LoadXML(IFX_Stream *pXMLStream, int32_t iXMLPlaneSize = 8192, int32_t iTextDataSize = 256, FDE_LPXMLREADERHANDLER pHandler = NULL) = 0;
virtual FX_BOOL LoadXML(IFDE_XMLParser *pXMLParser) = 0;
@@ -148,6 +152,7 @@ public:
class IFDE_XMLParser
{
public:
+ virtual ~IFDE_XMLParser() {}
virtual void Release() = 0;
virtual int32_t DoParser(IFX_Pause *pPause) = 0;
};
@@ -170,6 +175,7 @@ class IFDE_XMLSyntaxParser
{
public:
static IFDE_XMLSyntaxParser* Create();
+ virtual ~IFDE_XMLSyntaxParser() {}
virtual void Release() = 0;
virtual void Init(IFX_Stream *pStream, int32_t iXMLPlaneSize, int32_t iTextDataSize = 256) = 0;
virtual FX_DWORD DoSyntaxParse() = 0;