diff --git a/src/commands/CmdDelete.cpp b/src/commands/CmdDelete.cpp index 299fd7c1a..d524efd55 100644 --- a/src/commands/CmdDelete.cpp +++ b/src/commands/CmdDelete.cpp @@ -56,8 +56,8 @@ CmdDelete::CmdDelete () //////////////////////////////////////////////////////////////////////////////// int CmdDelete::execute (std::string&) { - int rc = 0; - int count = 0; + auto rc = 0; + auto count = 0; // Apply filter. Filter filter; @@ -176,7 +176,7 @@ int CmdDelete::execute (std::string&) } // Now list the project changes. - for (auto& change : projectChanges) + for (const auto& change : projectChanges) if (change.first != "") context.footnote (change.second);