CmdDone: Code cleanup

This commit is contained in:
Paul Beckingham 2017-01-28 21:35:02 -05:00
parent d6549fca78
commit 3c8dc72b3d

View file

@ -55,8 +55,8 @@ CmdDone::CmdDone ()
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
int CmdDone::execute (std::string&) int CmdDone::execute (std::string&)
{ {
int rc = 0; auto rc = 0;
int count = 0; auto count = 0;
// Apply filter. // Apply filter.
Filter filter; Filter filter;
@ -71,7 +71,7 @@ int CmdDone::execute (std::string&)
// Accumulated project change notifications. // Accumulated project change notifications.
std::map <std::string, std::string> projectChanges; std::map <std::string, std::string> projectChanges;
bool nagged = false; auto nagged = false;
for (auto& task : filtered) for (auto& task : filtered)
{ {
Task before (task); Task before (task);
@ -129,7 +129,7 @@ int CmdDone::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);