Skip to content

Commit

Permalink
Merge pull request #27195 from makortel/pluginFactoryCleanupSimGeneral
Browse files Browse the repository at this point in the history
Remove redundant unique_ptr constructor call from DigiAccumulatorMixModFactory
  • Loading branch information
cmsbuild committed Jun 16, 2019
2 parents 9576b29 + 6723259 commit d1e93b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SimGeneral/MixingModule/src/DigiAccumulatorMixModFactory.cc
Expand Up @@ -27,9 +27,7 @@ namespace edm {
ParameterSet const& conf, ProducerBase& mixMod, ConsumesCollector& iC) const {
std::string accumulatorType = conf.getParameter<std::string>("accumulatorType");
FDEBUG(1) << "DigiAccumulatorMixModFactory: digi_accumulator_type = " << accumulatorType << std::endl;
std::unique_ptr<DigiAccumulatorMixMod> wm;
wm = std::unique_ptr<DigiAccumulatorMixMod>(
DigiAccumulatorMixModPluginFactory::get()->create(accumulatorType, conf, mixMod, iC));
auto wm = DigiAccumulatorMixModPluginFactory::get()->create(accumulatorType, conf, mixMod, iC);

if (wm.get() == nullptr) {
throw edm::Exception(errors::Configuration, "NoSourceModule")
Expand Down

0 comments on commit d1e93b6

Please sign in to comment.