CmdCount: Code cleanup
This commit is contained in:
@@ -58,7 +58,7 @@ int CmdCount::execute (std::string& output)
|
|||||||
|
|
||||||
// Find number of matching tasks. Skip recurring parent tasks.
|
// Find number of matching tasks. Skip recurring parent tasks.
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (auto& task : filtered)
|
for (const auto& task : filtered)
|
||||||
if (task.getStatus () != Task::recurring)
|
if (task.getStatus () != Task::recurring)
|
||||||
++count;
|
++count;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user