diff options
Diffstat (limited to 'core/fxcrt/xml/cfx_xmltext.cpp')
-rw-r--r-- | core/fxcrt/xml/cfx_xmltext.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fxcrt/xml/cfx_xmltext.cpp b/core/fxcrt/xml/cfx_xmltext.cpp index c835680580..b6c1be7b07 100644 --- a/core/fxcrt/xml/cfx_xmltext.cpp +++ b/core/fxcrt/xml/cfx_xmltext.cpp @@ -8,8 +8,7 @@ #include "core/fxcrt/xml/cfx_xmldocument.h" -CFX_XMLText::CFX_XMLText(const WideString& wsText) - : CFX_XMLNode(), m_wsText(wsText) {} +CFX_XMLText::CFX_XMLText(const WideString& wsText) : text_(wsText) {} CFX_XMLText::~CFX_XMLText() = default; @@ -18,7 +17,7 @@ FX_XMLNODETYPE CFX_XMLText::GetType() const { } CFX_XMLNode* CFX_XMLText::Clone(CFX_XMLDocument* doc) { - return doc->CreateNode<CFX_XMLText>(m_wsText); + return doc->CreateNode<CFX_XMLText>(text_); } void CFX_XMLText::Save(const RetainPtr<IFX_SeekableWriteStream>& pXMLStream) { |