summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cfx_xmlnode.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2018-04-17 21:55:18 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-17 21:55:18 +0000
commit384e6fefb42ab5d3d71dd60f7f8d5f5155228804 (patch)
tree8fe0d065f51f6a459bd2be6adf625c3dd7a716f7 /core/fxcrt/xml/cfx_xmlnode.h
parent13aa65a71294cac6e4bdaab73ddd6f4b9fcd8676 (diff)
downloadpdfium-384e6fefb42ab5d3d71dd60f7f8d5f5155228804.tar.xz
CFX_XML Cleanup
Cleanup formatting and unused variables in the CFX_XML classes. Change-Id: I1aff6317a3da38a141a071ba69c7893d0f669732 Reviewed-on: https://pdfium-review.googlesource.com/30730 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlnode.h')
-rw-r--r--core/fxcrt/xml/cfx_xmlnode.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/core/fxcrt/xml/cfx_xmlnode.h b/core/fxcrt/xml/cfx_xmlnode.h
index d46ab9b29d..288095403c 100644
--- a/core/fxcrt/xml/cfx_xmlnode.h
+++ b/core/fxcrt/xml/cfx_xmlnode.h
@@ -20,19 +20,14 @@ enum FX_XMLNODETYPE {
FX_XMLNODE_CharData,
};
-struct FX_XMLNODE {
- int32_t iNodeNum;
- FX_XMLNODETYPE eNodeType;
-};
-
class CFX_XMLNode {
public:
CFX_XMLNode();
virtual ~CFX_XMLNode();
- virtual FX_XMLNODETYPE GetType() const;
- virtual std::unique_ptr<CFX_XMLNode> Clone();
- virtual void Save(const RetainPtr<IFX_SeekableStream>& pXMLStream);
+ virtual FX_XMLNODETYPE GetType() const = 0;
+ virtual std::unique_ptr<CFX_XMLNode> Clone() = 0;
+ virtual void Save(const RetainPtr<IFX_SeekableStream>& pXMLStream) = 0;
CFX_XMLNode* GetRoot();
CFX_XMLNode* GetParent() const { return parent_.Get(); }
@@ -48,7 +43,7 @@ class CFX_XMLNode {
WideString EncodeEntities(const WideString& value);
private:
- // A node owns it's first child and it owns it's next sibling. The rest
+ // A node owns its first child and it owns its next sibling. The rest
// are unowned pointers.
UnownedPtr<CFX_XMLNode> parent_;
UnownedPtr<CFX_XMLNode> last_child_;