[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:
committed by
Paul Beckingham
parent
d43fa66489
commit
a331cceded
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user