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.
|
// this take advantage of it.
|
||||||
virtual int GetChoiceSelection() const wxOVERRIDE { return m_index; }
|
virtual int GetChoiceSelection() const wxOVERRIDE { return m_index; }
|
||||||
|
|
||||||
virtual void OnValidationFailure( wxVariant& pendingValue ) wxOVERRIDE;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
int GetIndex() const;
|
int GetIndex() const;
|
||||||
|
@@ -361,8 +361,6 @@ public:
|
|||||||
// this take advantage of it.
|
// this take advantage of it.
|
||||||
virtual int GetChoiceSelection() const;
|
virtual int GetChoiceSelection() const;
|
||||||
|
|
||||||
virtual void OnValidationFailure( wxVariant& pendingValue );
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
int GetIndex() const;
|
int GetIndex() const;
|
||||||
|
@@ -1434,11 +1434,6 @@ bool wxEnumProperty::ValueFromInt_(wxVariant& value, int* pIndex, int intVal, in
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
wxEnumProperty::OnValidationFailure( wxVariant& WXUNUSED(pendingValue) )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxEnumProperty::SetIndex( int index )
|
void wxEnumProperty::SetIndex( int index )
|
||||||
{
|
{
|
||||||
m_index = index;
|
m_index = index;
|
||||||
|
Reference in New Issue
Block a user