From cefc287986234a5a87b2c2759452184076de013e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 28 Jan 2017 17:38:02 -0500 Subject: [PATCH] CmdAnnotate: Code cleanup --- src/commands/CmdAnnotate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/CmdAnnotate.cpp b/src/commands/CmdAnnotate.cpp index 99ead948e..1de036853 100644 --- a/src/commands/CmdAnnotate.cpp +++ b/src/commands/CmdAnnotate.cpp @@ -99,7 +99,7 @@ int CmdAnnotate::execute (std::string&) && confirm (STRING_CMD_ANNO_CONFIRM_R)) || context.config.getBoolean ("recurrence.confirmation")) { - std::vector siblings = context.tdb2.siblings (task); + auto siblings = context.tdb2.siblings (task); for (auto& sibling : siblings) { sibling.modify (Task::modAnnotate, true); @@ -126,7 +126,7 @@ int CmdAnnotate::execute (std::string&) } // Now list the project changes. - for (auto& change : projectChanges) + for (const auto& change : projectChanges) if (change.first != "") context.footnote (change.second);