Get rid of unnecessary overriding function
OnValidationFailure() in derived class wxEnumProperty has the same implementation (empty body) as the implementation in the base class wxPGProperty so overriding this function in derived class is not necessary.
This commit is contained in:
@@ -398,8 +398,6 @@ public:
|
||||
// this take advantage of it.
|
||||
virtual int GetChoiceSelection() const wxOVERRIDE { return m_index; }
|
||||
|
||||
virtual void OnValidationFailure( wxVariant& pendingValue ) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
|
||||
int GetIndex() const;
|
||||
|
@@ -361,8 +361,6 @@ public:
|
||||
// this take advantage of it.
|
||||
virtual int GetChoiceSelection() const;
|
||||
|
||||
virtual void OnValidationFailure( wxVariant& pendingValue );
|
||||
|
||||
protected:
|
||||
|
||||
int GetIndex() const;
|
||||
|
@@ -1434,11 +1434,6 @@ bool wxEnumProperty::ValueFromInt_(wxVariant& value, int* pIndex, int intVal, in
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
wxEnumProperty::OnValidationFailure( wxVariant& WXUNUSED(pendingValue) )
|
||||
{
|
||||
}
|
||||
|
||||
void wxEnumProperty::SetIndex( int index )
|
||||
{
|
||||
m_index = index;
|
||||
|
Reference in New Issue
Block a user