From 984b20f6de4ad311e75928984588bde81a561a21 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 28 Jan 2017 20:50:12 -0500 Subject: [PATCH] CmdCount: Code cleanup --- src/commands/CmdCount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/CmdCount.cpp b/src/commands/CmdCount.cpp index a1a20eb77..005f735fd 100644 --- a/src/commands/CmdCount.cpp +++ b/src/commands/CmdCount.cpp @@ -58,7 +58,7 @@ int CmdCount::execute (std::string& output) // Find number of matching tasks. Skip recurring parent tasks. int count = 0; - for (auto& task : filtered) + for (const auto& task : filtered) if (task.getStatus () != Task::recurring) ++count;