CmdAppend: Code cleanup
This commit is contained in:
@@ -78,9 +78,9 @@ int CmdAppend::execute (std::string&)
|
|||||||
Task before (task);
|
Task before (task);
|
||||||
|
|
||||||
// Append to the specified task.
|
// Append to the specified task.
|
||||||
std::string question = format (STRING_CMD_APPEND_CONFIRM,
|
auto question = format (STRING_CMD_APPEND_CONFIRM,
|
||||||
task.identifier (true),
|
task.identifier (true),
|
||||||
task.get ("description"));
|
task.get ("description"));
|
||||||
|
|
||||||
task.modify (Task::modAppend, true);
|
task.modify (Task::modAppend, true);
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ int CmdAppend::execute (std::string&)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now list the project changes.
|
// Now list the project changes.
|
||||||
for (auto& change : projectChanges)
|
for (const auto& change : projectChanges)
|
||||||
if (change.first != "")
|
if (change.first != "")
|
||||||
context.footnote (change.second);
|
context.footnote (change.second);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user