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

@ -279,7 +279,7 @@ static std::vector <Datetime> generateAllDueDates (const Task& templateTask)
bool end_in_sight = false;
Datetime until;
if (!templateTask.get ("until").empty())
if (templateTask.get ("until") != "")
{
until = Datetime (templateTask.get ("until"));
end_in_sight = true;
@ -296,7 +296,7 @@ static std::vector <Datetime> generateAllDueDates (const Task& templateTask)
Datetime nextDue = generateNextDueDate (due, recur, lastN);
// TODO Safety.
if (!dueDates.empty() && dueDates.back () == nextDue)
if (dueDates.size () && dueDates.back () == nextDue)
break;
// If nextDue > until, it means there are no more tasks to generate, so