Skip to content

Commit

Permalink
Fix use-after-move in CITKPFIsolationSumProducerForPUPPI
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Jun 6, 2019
1 parent 7db6a38 commit 31fff35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ namespace citk {
throw cms::Exception("InvalidIsolationType") << "Isolation type: " << isotype << " is not available in the "
<< "list of allowed isolations!.";
}
_isolation_types[thetype->second].emplace_back(std::move(theisolator));
const std::string dash("-");
std::string pname = isotype + dash + coneName + dash + theisolator->additionalCode();
_product_names[thetype->second].emplace_back(pname);
produces<edm::ValueMap<float>>(pname);
_isolation_types[thetype->second].emplace_back(std::move(theisolator));
}
}

Expand Down

0 comments on commit 31fff35

Please sign in to comment.