Add base class constructors to some copy constructors

This commit is contained in:
Ian McInerney 2020-01-06 19:55:39 +00:00
parent daac749927
commit 0c10bab412
3 changed files with 15 additions and 13 deletions

View File

@ -163,20 +163,23 @@ bool SCH_FIELD_VALIDATOR::Validate( wxWindow *aParent )
}
SCH_NETNAME_VALIDATOR::SCH_NETNAME_VALIDATOR( wxString *aVal ) :
wxValidator(), m_allowSpaces( false )
SCH_NETNAME_VALIDATOR::SCH_NETNAME_VALIDATOR( wxString *aVal )
: wxValidator(),
m_allowSpaces( false )
{
}
SCH_NETNAME_VALIDATOR::SCH_NETNAME_VALIDATOR( const SCH_NETNAME_VALIDATOR& aValidator ) :
m_allowSpaces( aValidator.m_allowSpaces )
SCH_NETNAME_VALIDATOR::SCH_NETNAME_VALIDATOR( const SCH_NETNAME_VALIDATOR& aValidator )
: wxValidator(),
m_allowSpaces( aValidator.m_allowSpaces )
{
}
SCH_NETNAME_VALIDATOR::SCH_NETNAME_VALIDATOR( bool aAllowSpaces ) :
wxValidator(), m_allowSpaces( aAllowSpaces )
SCH_NETNAME_VALIDATOR::SCH_NETNAME_VALIDATOR( bool aAllowSpaces )
: wxValidator(),
m_allowSpaces( aAllowSpaces )
{
}

View File

@ -35,12 +35,12 @@
class SELECTION : public KIGFX::VIEW_GROUP
{
public:
SELECTION()
SELECTION() : KIGFX::VIEW_GROUP::VIEW_GROUP()
{
m_isHover = false;
}
SELECTION( const SELECTION& aOther )
SELECTION( const SELECTION& aOther ) : KIGFX::VIEW_GROUP::VIEW_GROUP()
{
m_items = aOther.m_items;
m_isHover = aOther.m_isHover;

View File

@ -137,9 +137,8 @@ public:
compileRegEx( aRegEx, aFlags );
}
REGEX_VALIDATOR( const REGEX_VALIDATOR& aOther )
REGEX_VALIDATOR( const REGEX_VALIDATOR& aOther ) : wxTextValidator( aOther )
{
wxValidator::Copy( aOther );
compileRegEx( aOther.m_regExString, aOther.m_regExFlags );
}