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

Found with readability-container-size-empty

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2019-09-27 19:12:49 -07:00 committed by Paul Beckingham
parent d43fa66489
commit a331cceded
18 changed files with 132 additions and 132 deletions

View file

@ -116,7 +116,7 @@ std::string legacyCheckForDeprecatedVariables ()
}
std::stringstream out;
if (deprecated.size ())
if (!deprecated.empty())
{
out << "Your .taskrc file contains variables that are deprecated:\n";
@ -149,7 +149,7 @@ std::string legacyCheckForDeprecatedColumns ()
std::stringstream out;
out << "\n";
if (deprecated.size ())
if (!deprecated.empty())
{
out << "Your .taskrc file contains reports with deprecated columns. Please check for entry_time, start_time or end_time in:\n";