]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/property.cpp
m_inDoSelectProperty: make it bool and use wxON_BLOCK_EXIT_SET() on it.
[wxWidgets.git] / src / propgrid / property.cpp
index 93067a10f669c79bf46c36058e9589f249d091b2..04d2504498439752858f9bea401a91211ad16989 100644 (file)
@@ -692,12 +692,7 @@ wxPropertyGrid* wxPGProperty::GetGrid() const
 
 int wxPGProperty::Index( const wxPGProperty* p ) const
 {
-    for ( unsigned int i = 0; i<m_children.size(); i++ )
-    {
-        if ( p == m_children[i] )
-            return i;
-    }
-    return wxNOT_FOUND;
+    return wxPGFindInVector(m_children, p);
 }
 
 bool wxPGProperty::ValidateValue( wxVariant& WXUNUSED(value), wxPGValidationInfo& WXUNUSED(validationInfo) ) const