diff --git a/src/Hooks.cpp b/src/Hooks.cpp index a4929a07e..496104107 100644 --- a/src/Hooks.cpp +++ b/src/Hooks.cpp @@ -196,7 +196,6 @@ void Hooks::onExit () const // Convert to a vector of strings. std::vector input; - input.reserve(tasks.size()); for (auto& t : tasks) input.push_back (t.composeJSON ()); diff --git a/src/feedback.cpp b/src/feedback.cpp index 781a3eff4..19e6c078f 100644 --- a/src/feedback.cpp +++ b/src/feedback.cpp @@ -47,7 +47,6 @@ static void countTasks (const std::vector &, const std::string&, int&, int std::string taskIdentifiers (const std::vector & tasks) { std::vector identifiers; - identifiers.reserve(tasks.size()); for (const auto& task: tasks) identifiers.push_back (task.identifier (true));