From a82e28dd0336e2829496fa1ea0f6a327cf0099c6 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 10 Mar 2009 14:06:04 +0000 Subject: [PATCH] Change Compare() method to being const git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dataview/mymodels.cpp | 2 +- samples/dataview/mymodels.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/dataview/mymodels.cpp b/samples/dataview/mymodels.cpp index 3d19ca351e..03c13cd356 100644 --- a/samples/dataview/mymodels.cpp +++ b/samples/dataview/mymodels.cpp @@ -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 diff --git a/samples/dataview/mymodels.h b/samples/dataview/mymodels.h index 9a926ddc34..ba4397c1f1 100644 --- a/samples/dataview/mymodels.h +++ b/samples/dataview/mymodels.h @@ -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 -- 2.45.2