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:
Vadim Zeitlin
2021-02-21 14:55:16 +01:00
parent d2b2e0a4ed
commit 709b259bbb

View File

@@ -294,12 +294,7 @@ protected:
"This style doesn't make sense for integers." ); "This style doesn't make sense for integers." );
} }
wxIntegerValidatorBase(const wxIntegerValidatorBase& other) // Default copy ctor is ok.
: wxNumValidatorBase(other)
{
m_min = other.m_min;
m_max = other.m_max;
}
// Provide methods for wxNumValidator use. // Provide methods for wxNumValidator use.
wxString ToString(LongestValueType value) const; wxString ToString(LongestValueType value) const;
@@ -395,15 +390,7 @@ protected:
m_factor = 1.0; m_factor = 1.0;
} }
wxFloatingPointValidatorBase(const wxFloatingPointValidatorBase& other) // Default copy ctor is ok.
: wxNumValidatorBase(other)
{
m_precision = other.m_precision;
m_factor = other.m_factor;
m_min = other.m_min;
m_max = other.m_max;
}
// Provide methods for wxNumValidator use. // Provide methods for wxNumValidator use.
wxString ToString(LongestValueType value) const; wxString ToString(LongestValueType value) const;