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

This reverts commit a331cceded.
This commit is contained in:
Paul Beckingham 2020-12-05 16:18:15 -05:00
parent b2d46a1eba
commit 3e0a428185
18 changed files with 132 additions and 132 deletions

View file

@ -779,7 +779,7 @@ int Context::dispatch (std::string &out)
{
// Autocomplete args against keywords.
std::string command = cli2.getCommand ();
if (!command.empty())
if (command != "")
{
updateXtermTitle ();
updateVerbosity ();
@ -1026,7 +1026,7 @@ void Context::getLimits (int& rows, int& lines)
// This is an integer specified as a filter (limit:10).
auto limit = config.get ("limit");
if (!limit.empty())
if (limit != "")
{
if (limit == "page")
{
@ -1106,7 +1106,7 @@ void Context::staticInitialization ()
void Context::createDefaultConfig ()
{
// Do we need to create a default rc?
if (!rc_file._data.empty() && ! rc_file.exists ())
if (rc_file._data != "" && ! rc_file.exists ())
{
if (config.getBoolean ("confirmation") &&
! confirm ( format ("A configuration file could not be found in {1}\n\nWould you like a sample {2} created, so Taskwarrior can proceed?", home_dir, rc_file._data)))
@ -1240,7 +1240,7 @@ void Context::updateXtermTitle ()
void Context::updateVerbosity ()
{
auto command = cli2.getCommand ();
if (!command.empty() &&
if (command != "" &&
command[0] == '_')
{
verbosity = {"nothing"};