mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdDone: Code cleanup
This commit is contained in:
parent
acd61f14fd
commit
b5aadd0899
1 changed files with 4 additions and 4 deletions
|
@ -55,8 +55,8 @@ CmdDone::CmdDone ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdDone::execute (std::string&)
|
||||
{
|
||||
int rc = 0;
|
||||
int count = 0;
|
||||
auto rc = 0;
|
||||
auto count = 0;
|
||||
|
||||
// Apply filter.
|
||||
Filter filter;
|
||||
|
@ -71,7 +71,7 @@ int CmdDone::execute (std::string&)
|
|||
// Accumulated project change notifications.
|
||||
std::map <std::string, std::string> projectChanges;
|
||||
|
||||
bool nagged = false;
|
||||
auto nagged = false;
|
||||
for (auto& task : filtered)
|
||||
{
|
||||
Task before (task);
|
||||
|
@ -129,7 +129,7 @@ int CmdDone::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