Skip to content

Commit

Permalink
PFTau.cc: remove pessimizing move
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider authored Apr 4, 2024
1 parent 7e39f77 commit d23b366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataFormats/TauReco/src/PFTau.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ namespace reco {
template <typename T>
T& makeCacheIfNeeded(edm::AtomicPtrCache<T>& oCache) {
if (not oCache.isSet()) {
oCache.set(std::move(std::make_unique<T>()));
oCache.set(std::make_unique<T>());
}
return *oCache;
}
Expand Down

0 comments on commit d23b366

Please sign in to comment.