From 709b259bbb0953de20709f003c01f2348a97cb30 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 21 Feb 2021 14:55:16 +0100 Subject: [PATCH] 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. --- include/wx/valnum.h | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/include/wx/valnum.h b/include/wx/valnum.h index ba684c1ab3..94174a9ad7 100644 --- a/include/wx/valnum.h +++ b/include/wx/valnum.h @@ -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;