[clang-tidy] Use default to initialize constructors
Found with modernize-use-equals-default Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Paul Beckingham
parent
897759e4dc
commit
bf40ea8816
15
src/CLI2.cpp
15
src/CLI2.cpp
@@ -49,21 +49,10 @@ A2::A2 (const std::string& raw, Lexer::Type lextype)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
A2::A2 (const A2& other)
|
||||
: _lextype (other._lextype)
|
||||
, _tags (other._tags)
|
||||
, _attributes (other._attributes)
|
||||
{
|
||||
}
|
||||
A2::A2 (const A2& other) = default;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
A2& A2::operator= (const A2& other)
|
||||
{
|
||||
_lextype = other._lextype;
|
||||
_tags = other._tags;
|
||||
_attributes = other._attributes;
|
||||
return *this;
|
||||
}
|
||||
A2& A2::operator= (const A2& other) = default;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool A2::hasTag (const std::string& tag) const
|
||||
|
||||
Reference in New Issue
Block a user