From: Robert Roebling <robert@roebling.de>
Date: Sun, 12 Oct 2008 18:07:01 +0000 (+0000)
Subject: Correct spelling and signature of FixIndexesOfChildren
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5acb9127c51a79e792f6faeea6c70f32e622ee17

Correct spelling and signature of FixIndexesOfChildren

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h
index 1c209463c8..4037e14b1d 100644
--- a/include/wx/propgrid/property.h
+++ b/include/wx/propgrid/property.h
@@ -1914,7 +1914,7 @@ public:
     void Empty();
 
     // Puts correct indexes to children
-    void FixIndexesOfChildren( unsigned int starthere = 0 );
+    void FixIndecesOfChildren( unsigned int starthere = 0 );
 
 #ifndef SWIG
     // Returns wxPropertyGridPageState in which this property resides.
diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp
index e26512862e..d8cdd2c5e3 100644
--- a/src/propgrid/property.cpp
+++ b/src/propgrid/property.cpp
@@ -1561,7 +1561,7 @@ void wxPGProperty::AddChild2( wxPGProperty* prop, int index, bool correct_mode )
     else
     {
         m_children.insert( m_children.begin()+index, prop);
-        if ( correct_mode ) FixIndexesOfChildren( index );
+        if ( correct_mode ) FixIndecesOfChildren( index );
     }
 
     prop->m_parent = this;
@@ -1651,7 +1651,7 @@ void wxPGProperty::AdaptListToValue( wxVariant& list, wxVariant* value ) const
 }
 
 
-void wxPGProperty::FixIndexesOfChildren( size_t starthere )
+void wxPGProperty::FixIndecesOfChildren( unsigned int starthere )
 {
     size_t i;
     for ( i=starthere;i<GetChildCount();i++)
diff --git a/src/propgrid/propgridpagestate.cpp b/src/propgrid/propgridpagestate.cpp
index 4fff40666a..06adc31f07 100644
--- a/src/propgrid/propgridpagestate.cpp
+++ b/src/propgrid/propgridpagestate.cpp
@@ -632,7 +632,7 @@ void wxPropertyGridPageState::SortChildren( wxPGProperty* p )
 #endif
 
     // Fix indexes
-    pwc->FixIndexesOfChildren();
+    pwc->FixIndecesOfChildren();
 
 }
 
@@ -1826,7 +1826,7 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item )
             }
 
             if ( IsInNonCatMode() )
-                m_abcArray->FixIndexesOfChildren();
+                m_abcArray->FixIndecesOfChildren();
         }
     }
 
@@ -1844,7 +1844,7 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item )
         // categorized mode - categorized array
         wxArrayPGProperty& parentsChildren = item->m_parent->m_children;
         parentsChildren.erase( parentsChildren.begin() + indinparent );
-        item->m_parent->FixIndexesOfChildren();
+        item->m_parent->FixIndecesOfChildren();
     }
     else
     {
@@ -1877,7 +1877,7 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item )
             wxASSERT( item->m_parent == m_abcArray );
             wxArrayPGProperty& parentsChildren = item->m_parent->m_children;
             parentsChildren.erase(parentsChildren.begin() + indinparent);
-            item->m_parent->FixIndexesOfChildren(indinparent);
+            item->m_parent->FixIndecesOfChildren(indinparent);
         }
     }