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:
Robert Roebling 2009-03-10 14:06:04 +00:00
parent 1f226ad8a7
commit a82e28dd03
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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