summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cfx_xmlelement.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlelement.h')
-rw-r--r--core/fxcrt/xml/cfx_xmlelement.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/xml/cfx_xmlelement.h b/core/fxcrt/xml/cfx_xmlelement.h
index 8a8720fa83..822f5ec132 100644
--- a/core/fxcrt/xml/cfx_xmlelement.h
+++ b/core/fxcrt/xml/cfx_xmlelement.h
@@ -24,7 +24,7 @@ class CFX_XMLElement final : public CFX_XMLNode {
CFX_XMLNode* Clone(CFX_XMLDocument* doc) override;
void Save(const RetainPtr<IFX_SeekableWriteStream>& pXMLStream) override;
- WideString GetName() const { return name_; }
+ const WideString& GetName() const { return name_; }
const std::map<WideString, WideString>& GetAttributes() const {
return attrs_;
@@ -48,7 +48,7 @@ class CFX_XMLElement final : public CFX_XMLNode {
private:
WideString AttributeToString(const WideString& name, const WideString& value);
- WideString name_;
+ const WideString name_;
std::map<WideString, WideString> attrs_;
};