Skip to content

Commit

Permalink
Merge pull request #44618 from iarspider/patch-4
Browse files Browse the repository at this point in the history
PFTau.cc: remove pessimizing move
  • Loading branch information
cmsbuild authored Apr 8, 2024
2 parents 8f5cee6 + d23b366 commit a3807a3
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 a3807a3

Please sign in to comment.