clang-tidy: use = default

Found with modernize-use-equals-default

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-02-28 18:58:44 -08:00 committed by Tomas Babej
parent 4aaaa8dcc8
commit 3cafb5257e
9 changed files with 7 additions and 50 deletions

View file

@ -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