]> git.saurik.com Git - wxWidgets.git/commitdiff
wxHashSet::count() method should be const
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Apr 2009 16:50:24 +0000 (16:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Apr 2009 16:50:24 +0000 (16:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/hashset.h

index 542b522c44da0fef6cc143717216d690b93c1a41..82418c03a63b9ad3f515a6c85284c5c49ee891bb 100644 (file)
@@ -99,7 +99,7 @@ public:                                                                      \
     void erase( const const_iterator& it ) { erase( *it ); }                 \
                                                                              \
     /* count() == 0 | 1 */                                                   \
-    size_type count( const const_key_type& key )                             \
+    size_type count( const const_key_type& key ) const                       \
         { return GetNode( key ) ? 1 : 0; }                                   \
 }