Revert "[clang-tidy] Use .empty instead of comparing size"
This reverts commit a331cceded.
This commit is contained in:
@@ -1900,7 +1900,7 @@ void Variant::cast (const enum type new_type)
|
||||
break;
|
||||
}
|
||||
|
||||
if (!dateFormat.empty())
|
||||
if (dateFormat != "")
|
||||
{
|
||||
_date = Datetime (_string, dateFormat).toEpoch ();
|
||||
break;
|
||||
@@ -1961,7 +1961,7 @@ bool Variant::trivial () const
|
||||
{
|
||||
return (_type == type_integer && _integer == 0) ||
|
||||
(_type == type_real && _real == 0.0) ||
|
||||
(_type == type_string && _string.empty()) ||
|
||||
(_type == type_string && _string == "") ||
|
||||
(_type == type_date && _date == 0) ||
|
||||
(_type == type_duration && _duration == 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user