Revert "[clang-tidy] Use .empty instead of comparing size"

This reverts commit a331cceded.
This commit is contained in:
Paul Beckingham
2020-12-05 16:18:15 -05:00
parent b2d46a1eba
commit 3e0a428185
18 changed files with 132 additions and 132 deletions

View File

@@ -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);
}