mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
clang-tidy: use = default
Found with modernize-use-equals-default Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
4aaaa8dcc8
commit
3cafb5257e
9 changed files with 7 additions and 50 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue