mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Revert "[clang-tidy] Use default to initialize constructors"
This reverts commit bf40ea8816
.
This commit is contained in:
parent
aa841f98c9
commit
ead50d4d6e
3 changed files with 29 additions and 4 deletions
15
src/CLI2.cpp
15
src/CLI2.cpp
|
@ -49,10 +49,21 @@ A2::A2 (const std::string& raw, Lexer::Type lextype)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
A2::A2 (const A2& other) = default;
|
||||
A2::A2 (const A2& other)
|
||||
: _lextype (other._lextype)
|
||||
, _tags (other._tags)
|
||||
, _attributes (other._attributes)
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
A2& A2::operator= (const A2& other) = default;
|
||||
A2& A2::operator= (const A2& other)
|
||||
{
|
||||
_lextype = other._lextype;
|
||||
_tags = other._tags;
|
||||
_attributes = other._attributes;
|
||||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool A2::hasTag (const std::string& tag) const
|
||||
|
|
|
@ -50,7 +50,9 @@ Lexer::Lexer (const std::string& text)
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Lexer::~Lexer () = default;
|
||||
Lexer::~Lexer ()
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// When a Lexer object is constructed with a string, this method walks through
|
||||
|
|
|
@ -166,7 +166,19 @@ const std::string& Variant::source () const
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Variant& Variant::operator= (const Variant& other) = default;
|
||||
Variant& Variant::operator= (const Variant& other)
|
||||
{
|
||||
_type = other._type;
|
||||
_bool = other._bool;
|
||||
_integer = other._integer;
|
||||
_real = other._real;
|
||||
_string = other._string;
|
||||
_date = other._date;
|
||||
_duration = other._duration;
|
||||
_source = other._source;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Variant::operator&& (const Variant& other) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue