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

@@ -166,19 +166,7 @@ const std::string& Variant::source () const
}
////////////////////////////////////////////////////////////////////////////////
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;
}
Variant& Variant::operator= (const Variant& other) = default;
////////////////////////////////////////////////////////////////////////////////
bool Variant::operator&& (const Variant& other) const