]> git.saurik.com Git - wxWidgets.git/commitdiff
Change Compare() method to being const
authorRobert Roebling <robert@roebling.de>
Tue, 10 Mar 2009 14:06:04 +0000 (14:06 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 10 Mar 2009 14:06:04 +0000 (14:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dataview/mymodels.cpp
samples/dataview/mymodels.h

index 3d19ca351e313d03b1cfdae8b294fbe7f832b51f..03c13cd35631618b9b199b646e948df181c932c2 100644 (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
index 9a926ddc343f76001fc96d91199392e8491b0663..ba4397c1f19aa865c8df6e6e3744a0862d1d79ea 100644 (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