From 396e923f22bcded5b29a1dfc5671afa3d0aceb97 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 28 Jan 2017 17:49:16 -0500 Subject: [PATCH] CmdAppend: Code cleanup --- src/commands/CmdAppend.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/CmdAppend.cpp b/src/commands/CmdAppend.cpp index 8769e8796..d564d4ea8 100644 --- a/src/commands/CmdAppend.cpp +++ b/src/commands/CmdAppend.cpp @@ -78,9 +78,9 @@ int CmdAppend::execute (std::string&) Task before (task); // Append to the specified task. - std::string question = format (STRING_CMD_APPEND_CONFIRM, - task.identifier (true), - task.get ("description")); + auto question = format (STRING_CMD_APPEND_CONFIRM, + task.identifier (true), + task.get ("description")); task.modify (Task::modAppend, true); @@ -126,7 +126,7 @@ int CmdAppend::execute (std::string&) } // Now list the project changes. - for (auto& change : projectChanges) + for (const auto& change : projectChanges) if (change.first != "") context.footnote (change.second);