mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
[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:
parent
d43fa66489
commit
a331cceded
18 changed files with 132 additions and 132 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue