From 7d8fff418efb32c57ac40bffbfaaca5a31355dd7 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 5 Dec 2020 16:18:15 -0500 Subject: [PATCH] Revert "[clang-tidy] Reserve memory for vector loop" This reverts commit 7f86b29aa9631712a7e5312c01186a9c9e80e1fd. --- src/Hooks.cpp | 1 - src/feedback.cpp | 1 - 2 files changed, 2 deletions(-) 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));