return const ref to label from GetLabel() and other accessors instead of copying it, this fixes 1153178
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -151,10 +151,10 @@ public:
|
||||
const wxBitmap& GetBitmap() const
|
||||
{ return IsEnabled() ? GetNormalBitmap() : GetDisabledBitmap(); }
|
||||
|
||||
wxString GetLabel() const { return m_label; }
|
||||
const wxString& GetLabel() const { return m_label; }
|
||||
|
||||
wxString GetShortHelp() const { return m_shortHelpString; }
|
||||
wxString GetLongHelp() const { return m_longHelpString; }
|
||||
const wxString& GetShortHelp() const { return m_shortHelpString; }
|
||||
const wxString& GetLongHelp() const { return m_longHelpString; }
|
||||
|
||||
wxObject *GetClientData() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user