Don't define copy ctor in numeric validator classes unnecessarily
There is just no need to do it manually, when the compiler can do the job perfectly well itself. No real changes, but this will simplify the upcoming refactoring.
This commit is contained in:
@@ -294,12 +294,7 @@ protected:
|
||||
"This style doesn't make sense for integers." );
|
||||
}
|
||||
|
||||
wxIntegerValidatorBase(const wxIntegerValidatorBase& other)
|
||||
: wxNumValidatorBase(other)
|
||||
{
|
||||
m_min = other.m_min;
|
||||
m_max = other.m_max;
|
||||
}
|
||||
// Default copy ctor is ok.
|
||||
|
||||
// Provide methods for wxNumValidator use.
|
||||
wxString ToString(LongestValueType value) const;
|
||||
@@ -395,15 +390,7 @@ protected:
|
||||
m_factor = 1.0;
|
||||
}
|
||||
|
||||
wxFloatingPointValidatorBase(const wxFloatingPointValidatorBase& other)
|
||||
: wxNumValidatorBase(other)
|
||||
{
|
||||
m_precision = other.m_precision;
|
||||
m_factor = other.m_factor;
|
||||
|
||||
m_min = other.m_min;
|
||||
m_max = other.m_max;
|
||||
}
|
||||
// Default copy ctor is ok.
|
||||
|
||||
// Provide methods for wxNumValidator use.
|
||||
wxString ToString(LongestValueType value) const;
|
||||
|
Reference in New Issue
Block a user