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;
@ -131,7 +131,7 @@ public:
{
return m_items;
}
/// Returns the center point of the selection area bounding box.
virtual VECTOR2I GetCenter() const
{
@ -165,7 +165,7 @@ public:
return bbox;
}
virtual EDA_ITEM* GetTopLeftItem( bool onlyModules = false ) const
{
return nullptr;
@ -258,7 +258,7 @@ public:
bool AreAllItemsIdentical() const
{
return ( std::all_of( m_items.begin() + 1, m_items.end(),
[&]( const EDA_ITEM* r )
[&]( const EDA_ITEM* r )
{
return r->Type() == m_items.front()->Type();
} ) );

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 );
}