Skip to content

Commit

Permalink
Merge pull request #25558 from Dr15Jones/clangMuIsoDepositCopyProducer
Browse files Browse the repository at this point in the history
Remove inappropriate use of std::move
  • Loading branch information
cmsbuild committed Dec 26, 2018
2 parents 2f732fb + e102b13 commit 5cb0f3f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ MuIsoDepositCopyProducer::MuIsoDepositCopyProducer(const ParameterSet& par) :

for (unsigned int i = 0; i < theDepositNames.size(); ++i){
std::string alias = theConfig.getParameter<std::string>("@module_label");
if (theDepositNames[i] != "") alias += "_" + theDepositNames[i];
if (!theDepositNames[i].empty()) alias += "_" + theDepositNames[i];
produces<reco::IsoDepositMap>(theDepositNames[i]).setBranchAlias(alias);
}
for (unsigned int iDep = 0; iDep < theInputTags.size(); ++iDep)
Expand All @@ -60,7 +60,7 @@ void MuIsoDepositCopyProducer::produce(Event& event, const EventSetup& eventSetu
Handle<reco::IsoDepositMap > inDep;
event.getByToken(theInputTokens[iDep], inDep);

event.put(std::move(std::make_unique<reco::IsoDepositMap>(*inDep)), theDepositNames[iDep]);
event.put(std::make_unique<reco::IsoDepositMap>(*inDep), theDepositNames[iDep]);
}//! end iDep

LogTrace(metname) <<" END OF EVENT " <<"================================";
Expand Down

0 comments on commit 5cb0f3f

Please sign in to comment.