// 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;
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; }