return name and extension by const ref, not by value, to prevent bugs as the one just fixed by patch 1159289 from compiling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -102,8 +102,8 @@ public:
|
|||||||
void SetExtension(const wxString& ext) { m_extension = ext; }
|
void SetExtension(const wxString& ext) { m_extension = ext; }
|
||||||
void SetType(long type) { m_type = type; }
|
void SetType(long type) { m_type = type; }
|
||||||
|
|
||||||
wxString GetName() const { return m_name; }
|
const wxString& GetName() const { return m_name; }
|
||||||
wxString GetExtension() const { return m_extension; }
|
const wxString& GetExtension() const { return m_extension; }
|
||||||
long GetType() const { return m_type; }
|
long GetType() const { return m_type; }
|
||||||
|
|
||||||
// real handler operations: to implement in derived classes
|
// real handler operations: to implement in derived classes
|
||||||
|
Reference in New Issue
Block a user