mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdAnnotate: Code cleanup
This commit is contained in:
parent
82cd74906b
commit
e5646726c1
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ int CmdAnnotate::execute (std::string&)
|
|||
&& confirm (STRING_CMD_ANNO_CONFIRM_R)) ||
|
||||
context.config.getBoolean ("recurrence.confirmation"))
|
||||
{
|
||||
std::vector <Task> 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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue