mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
tidy: modernize-use-emplace
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user