Use the empty method to check for emptiness instead of comparing to an empty object

This commit is contained in:
Thomas Lauf 2018-05-10 20:55:03 +02:00
parent b5acfed98f
commit 2c5812f7a3
17 changed files with 51 additions and 50 deletions

View file

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