mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
Revert "[clang-tidy] Use .empty instead of comparing size"
This reverts commit a331cceded
.
This commit is contained in:
parent
b2d46a1eba
commit
3e0a428185
18 changed files with 132 additions and 132 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue