mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-07-12 02:01:36 +00:00
perf: emplace elements instead of inserting temporaries
- construct container elements in place instead of inserting a temporary - clang-tidy modernize-use-emplace https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-emplace.html
This commit is contained in:
committed by
Dennis Klein
parent
0feda158b4
commit
d5e0c29ced
@@ -513,7 +513,8 @@ void Device::HandleMultipleTransportInput()
|
||||
fMultitransportProceed = true;
|
||||
|
||||
for (const auto& i : fMultitransportInputs) {
|
||||
threads.emplace_back(thread(&Device::PollForTransport, this, fTransports.at(i.first).get(), i.second));
|
||||
threads.emplace_back(
|
||||
&Device::PollForTransport, this, fTransports.at(i.first).get(), i.second);
|
||||
}
|
||||
|
||||
for (thread& t : threads) {
|
||||
|
||||
Reference in New Issue
Block a user