summaryrefslogtreecommitdiff
path: root/xfa/fde/xml/cfde_xmltext.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fde/xml/cfde_xmltext.h')
-rw-r--r--xfa/fde/xml/cfde_xmltext.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/xfa/fde/xml/cfde_xmltext.h b/xfa/fde/xml/cfde_xmltext.h
index 6f3945be09..6987c49980 100644
--- a/xfa/fde/xml/cfde_xmltext.h
+++ b/xfa/fde/xml/cfde_xmltext.h
@@ -7,6 +7,8 @@
#ifndef XFA_FDE_XML_CFDE_XMLTEXT_H_
#define XFA_FDE_XML_CFDE_XMLTEXT_H_
+#include <memory>
+
#include "core/fxcrt/fx_string.h"
#include "xfa/fde/xml/cfde_xmlnode.h"
@@ -17,11 +19,12 @@ class CFDE_XMLText : public CFDE_XMLNode {
// CFDE_XMLNode
FDE_XMLNODETYPE GetType() const override;
- CFDE_XMLNode* Clone(bool bRecursive) override;
+ std::unique_ptr<CFDE_XMLNode> Clone() override;
- void GetText(CFX_WideString& wsText) const { wsText = m_wsText; }
+ CFX_WideString GetText() const { return m_wsText; }
void SetText(const CFX_WideString& wsText) { m_wsText = wsText; }
+ private:
CFX_WideString m_wsText;
};