mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Revert "[clang-tidy] Reserve memory for vector loop"
This reverts commit 7f86b29aa9
.
This commit is contained in:
parent
702af00435
commit
7d8fff418e
2 changed files with 0 additions and 2 deletions
|
@ -196,7 +196,6 @@ void Hooks::onExit () const
|
|||
|
||||
// Convert to a vector of strings.
|
||||
std::vector <std::string> input;
|
||||
input.reserve(tasks.size());
|
||||
for (auto& t : tasks)
|
||||
input.push_back (t.composeJSON ());
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ static void countTasks (const std::vector <Task>&, const std::string&, int&, int
|
|||
std::string taskIdentifiers (const std::vector <Task>& tasks)
|
||||
{
|
||||
std::vector <std::string> identifiers;
|
||||
identifiers.reserve(tasks.size());
|
||||
for (const auto& task: tasks)
|
||||
identifiers.push_back (task.identifier (true));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue