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:
parent
1f226ad8a7
commit
a82e28dd03
@ -156,7 +156,7 @@ void MyMusicTreeModel::Delete( const wxDataViewItem &item )
|
||||
}
|
||||
|
||||
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());
|
||||
// should never happen
|
||||
|
@ -141,7 +141,7 @@ public:
|
||||
// override sorting to always sort branches ascendingly
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user