diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-17 16:58:49 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-17 16:58:49 -0800 |
commit | dee2d7ba656cdf8111f879485146e0900630826a (patch) | |
tree | 3ea64c42d591456fedcf3e3cdd9d4f12dcdf1e18 /core/include/fxcrt/fx_xml.h | |
parent | 1e1d3b0f2bc6b6c185b37e0aa6b8663e901dc8bf (diff) | |
download | pdfium-dee2d7ba656cdf8111f879485146e0900630826a.tar.xz |
Banish CFX_ObjectArray to the XFA side.
Tidy whitespace, add missing consts in a few places. Remove
a few pointless typedefs.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1707953002 .
Diffstat (limited to 'core/include/fxcrt/fx_xml.h')
-rw-r--r-- | core/include/fxcrt/fx_xml.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/include/fxcrt/fx_xml.h b/core/include/fxcrt/fx_xml.h index e1255c1f30..f18392c6ee 100644 --- a/core/include/fxcrt/fx_xml.h +++ b/core/include/fxcrt/fx_xml.h @@ -7,12 +7,15 @@ #ifndef CORE_INCLUDE_FXCRT_FX_XML_H_ #define CORE_INCLUDE_FXCRT_FX_XML_H_ +#include <memory> #include <vector> #include "core/include/fxcrt/fx_basic.h" class CXML_AttrItem { public: + bool Matches(const CFX_ByteStringC& space, const CFX_ByteStringC& name) const; + CFX_ByteString m_QSpaceName; CFX_ByteString m_AttrName; CFX_WideString m_Value; @@ -20,18 +23,15 @@ class CXML_AttrItem { class CXML_AttrMap { public: - CXML_AttrMap() { m_pMap = NULL; } - ~CXML_AttrMap() { RemoveAll(); } const CFX_WideString* Lookup(const CFX_ByteStringC& space, const CFX_ByteStringC& name) const; void SetAt(const CFX_ByteStringC& space, const CFX_ByteStringC& name, const CFX_WideStringC& value); - void RemoveAt(const CFX_ByteStringC& space, const CFX_ByteStringC& name); - void RemoveAll(); int GetSize() const; CXML_AttrItem& GetAt(int index) const; - CFX_ObjectArray<CXML_AttrItem>* m_pMap; + + std::unique_ptr<std::vector<CXML_AttrItem>> m_pMap; }; class CXML_Content { @@ -41,6 +41,7 @@ class CXML_Content { m_bCDATA = bCDATA; m_Content = content; } + FX_BOOL m_bCDATA; CFX_WideString m_Content; }; |