diff --git a/include/wx/xml/xml.h b/include/wx/xml/xml.h index 02936478c2..95fa3cfb2c 100644 --- a/include/wx/xml/xml.h +++ b/include/wx/xml/xml.h @@ -69,8 +69,8 @@ public: : m_name(name), m_value(value), m_next(next) {} virtual ~wxXmlAttribute() {} - wxString GetName() const { return m_name; } - wxString GetValue() const { return m_value; } + const wxString& GetName() const { return m_name; } + const wxString& GetValue() const { return m_value; } wxXmlAttribute *GetNext() const { return m_next; } void SetName(const wxString& name) { m_name = name; }