mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-06-17 09:17:05 +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
@@ -390,7 +390,7 @@ class Manager
|
||||
}
|
||||
|
||||
auto* lRegion = GetRegion(id);
|
||||
fTlRegionCache.fRegionsTLCache.emplace_back(std::make_tuple(lRegion, id, fShmId64));
|
||||
fTlRegionCache.fRegionsTLCache.emplace_back(lRegion, id, fShmId64);
|
||||
fTlRegionCache.fRegionsTLCacheGen = fRegionsGen;
|
||||
return lRegion;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user