[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:
Rosen Penev
2019-09-27 19:35:54 -07:00
committed by Paul Beckingham
parent 897759e4dc
commit bf40ea8816
3 changed files with 4 additions and 29 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