diff options
Diffstat (limited to 'core/include/fxcrt')
-rw-r--r-- | core/include/fxcrt/fx_basic.h | 2 | ||||
-rw-r--r-- | core/include/fxcrt/fx_xml.h | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h index 3acdda7797..7f47122dea 100644 --- a/core/include/fxcrt/fx_basic.h +++ b/core/include/fxcrt/fx_basic.h @@ -444,6 +444,7 @@ typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; typedef CFX_ArrayTemplate<void*> CFX_PtrArray; #endif // PDF_ENABLE_XFA +#ifdef PDF_ENABLE_XFA template <class ObjectClass> class CFX_ObjectArray : public CFX_BasicArray { public: @@ -545,7 +546,6 @@ class CFX_ObjectArray : public CFX_BasicArray { CFX_BasicArray::SetSize(0); } }; -#ifdef PDF_ENABLE_XFA typedef CFX_ObjectArray<CFX_ByteString> CFX_ByteStringArray; typedef CFX_ObjectArray<CFX_WideString> CFX_WideStringArray; class CFX_BaseSegmentedArray { 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; }; |