GetColumnTextValue() can't return a reference to a temporary string, so changed it to return wxString by value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,7 +186,7 @@ public:
|
||||
virtual bool HasColumnInfo( unsigned int column );
|
||||
|
||||
virtual void SetColumnTextValue( unsigned int column, const wxString& text );
|
||||
virtual const wxString& GetColumnTextValue( unsigned int column );
|
||||
virtual wxString GetColumnTextValue( unsigned int column );
|
||||
|
||||
virtual int GetColumnImageValue( unsigned int column );
|
||||
virtual void SetColumnImageValue( unsigned int column, int imageIndex );
|
||||
@@ -2855,7 +2855,7 @@ void wxMacListCtrlItem::SetColumnImageValue( unsigned int column, int imageIndex
|
||||
GetColumnInfo(column)->SetImage(imageIndex);
|
||||
}
|
||||
|
||||
const wxString& wxMacListCtrlItem::GetColumnTextValue( unsigned int column )
|
||||
wxString wxMacListCtrlItem::GetColumnTextValue( unsigned int column )
|
||||
{
|
||||
if ( column == 0 )
|
||||
return GetLabel();
|
||||
|
Reference in New Issue
Block a user