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