CmdCount: Code cleanup

This commit is contained in:
Paul Beckingham 2017-01-28 20:50:12 -05:00
parent 8e6fd5d979
commit 984b20f6de

View file

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