mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Use the empty method to check for emptiness instead of comparing to an empty object
This commit is contained in:
parent
b5acfed98f
commit
2c5812f7a3
17 changed files with 51 additions and 50 deletions
|
@ -327,7 +327,7 @@ bool CLI::canonicalize (
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string CLI::getBinary () const
|
||||
{
|
||||
if (_args.size ())
|
||||
if (! _args.empty ())
|
||||
return _args[0].attribute ("raw");
|
||||
|
||||
return "";
|
||||
|
@ -366,7 +366,7 @@ std::string CLI::dump (const std::string& title) const
|
|||
|
||||
out << '\n';
|
||||
|
||||
if (_args.size ())
|
||||
if (! _args.empty ())
|
||||
{
|
||||
out << " _args\n";
|
||||
for (auto& a : _args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue