Change Compare() method to being const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -156,7 +156,7 @@ void MyMusicTreeModel::Delete( const wxDataViewItem &item )
|
|||||||
}
|
}
|
||||||
|
|
||||||
int MyMusicTreeModel::Compare( const wxDataViewItem &item1, const wxDataViewItem &item2,
|
int MyMusicTreeModel::Compare( const wxDataViewItem &item1, const wxDataViewItem &item2,
|
||||||
unsigned int column, bool ascending )
|
unsigned int column, bool ascending ) const
|
||||||
{
|
{
|
||||||
wxASSERT(item1.IsOk() && item2.IsOk());
|
wxASSERT(item1.IsOk() && item2.IsOk());
|
||||||
// should never happen
|
// should never happen
|
||||||
|
@@ -141,7 +141,7 @@ public:
|
|||||||
// override sorting to always sort branches ascendingly
|
// override sorting to always sort branches ascendingly
|
||||||
|
|
||||||
int Compare( const wxDataViewItem &item1, const wxDataViewItem &item2,
|
int Compare( const wxDataViewItem &item1, const wxDataViewItem &item2,
|
||||||
unsigned int column, bool ascending );
|
unsigned int column, bool ascending ) const;
|
||||||
|
|
||||||
// implementation of base class virtuals to define model
|
// implementation of base class virtuals to define model
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user