mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
tidy: modernize-use-emplace
This commit is contained in:
parent
4a5aae9330
commit
fa05a726c2
47 changed files with 167 additions and 162 deletions
|
|
@ -40,7 +40,7 @@ std::set<std::string> RenameEnMasse(int num_threads)
|
|||
|
||||
threads.reserve(num_threads);
|
||||
for (int i = 0; i < num_threads; ++i) {
|
||||
threads.push_back(std::thread(RenameThisThread, i));
|
||||
threads.emplace_back(RenameThisThread, i);
|
||||
}
|
||||
|
||||
for (std::thread& thread : threads) thread.join();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue