]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove wxEnumProperty::ms_prevIndex
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 3 Mar 2009 21:04:08 +0000 (21:04 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 3 Mar 2009 21:04:08 +0000 (21:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/props.h
src/propgrid/props.cpp

index 5517f8acd9877fac7c7e2a4034d8dd0d175681f1..ae426977edb6b2b8f5d76f48c912b8990a85c1dc 100644 (file)
@@ -449,7 +449,6 @@ private:
 
     // Relies on ValidateValue being called always before OnSetValue
     static int              ms_nextIndex;
-    static int              ms_prevIndex;
 };
 
 // -----------------------------------------------------------------------
index 9014519cee5d3acff168ee4779e2303cb156b2a8..9726f496822b356f5faa8fed4754792ac1a41952 100644 (file)
@@ -963,7 +963,6 @@ wxEnumProperty::~wxEnumProperty ()
 }
 
 int wxEnumProperty::ms_nextIndex = -2;
-int wxEnumProperty::ms_prevIndex = -1;
 
 void wxEnumProperty::OnSetValue()
 {
@@ -1118,13 +1117,11 @@ void
 wxEnumProperty::OnValidationFailure( wxVariant& WXUNUSED(pendingValue) )
 {
     // Revert index
-    m_index = ms_prevIndex;
     ResetNextIndex();
 }
 
 void wxEnumProperty::SetIndex( int index )
 {
-    ms_prevIndex = m_index;
     ms_nextIndex = -2;
     m_index = index;
 }