return const wxString& instead of wxString from the accessor methods that allow it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,8 +122,8 @@ public:
|
||||
|
||||
// access methods:
|
||||
wxXmlNodeType GetType() const { return m_type; }
|
||||
wxString GetName() const { return m_name; }
|
||||
wxString GetContent() const { return m_content; }
|
||||
const wxString& GetName() const { return m_name; }
|
||||
const wxString& GetContent() const { return m_content; }
|
||||
|
||||
bool IsWhitespaceOnly() const;
|
||||
int GetDepth(wxXmlNode *grandparent = NULL) const;
|
||||
@@ -211,11 +211,11 @@ public:
|
||||
wxXmlNode *GetRoot() const { return m_root; }
|
||||
|
||||
// Returns version of document (may be empty).
|
||||
wxString GetVersion() const { return m_version; }
|
||||
const wxString& GetVersion() const { return m_version; }
|
||||
// Returns encoding of document (may be empty).
|
||||
// Note: this is the encoding original file was saved in, *not* the
|
||||
// encoding of in-memory representation!
|
||||
wxString GetFileEncoding() const { return m_fileEncoding; }
|
||||
const wxString& GetFileEncoding() const { return m_fileEncoding; }
|
||||
|
||||
// Write-access methods:
|
||||
wxXmlNode *DetachRoot() { wxXmlNode *old=m_root; m_root=NULL; return old; }
|
||||
|
Reference in New Issue
Block a user