]> git.saurik.com Git - wxWidgets.git/commitdiff
GetChildrenCount() should be const
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Apr 2004 09:44:32 +0000 (09:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Apr 2004 09:44:32 +0000 (09:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/treectlg.h
src/generic/treectlg.cpp

index 2aba6baa1013bb7055cf0989f1cab591cebe9838..7ab1cd0d31870017309c06c64306d2f9a2839b7b 100644 (file)
@@ -185,7 +185,8 @@ public:
 
         // if 'recursively' is FALSE, only immediate children count, otherwise
         // the returned number is the number of all items in this branch
 
         // if 'recursively' is FALSE, only immediate children count, otherwise
         // the returned number is the number of all items in this branch
-    size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = TRUE);
+    size_t GetChildrenCount(const wxTreeItemId& item,
+                            bool recursively = TRUE) const;
 
     // navigation
     // ----------
 
     // navigation
     // ----------
index 69637e09c01a6a99fb07dad0035ab84568b16128..24dec8e4cb1a8cab5be216fb546231b1f6c2ba57 100644 (file)
@@ -836,7 +836,9 @@ void wxGenericTreeCtrl::SetSpacing(unsigned int spacing)
     m_dirty = TRUE;
 }
 
     m_dirty = TRUE;
 }
 
-size_t wxGenericTreeCtrl::GetChildrenCount(const wxTreeItemId& item, bool recursively)
+size_t
+wxGenericTreeCtrl::GetChildrenCount(const wxTreeItemId& item,
+                                    bool recursively) const
 {
     wxCHECK_MSG( item.IsOk(), 0u, wxT("invalid tree item") );
 
 {
     wxCHECK_MSG( item.IsOk(), 0u, wxT("invalid tree item") );