diff --git a/FWCore/ParameterSet/interface/PluginDescription.h b/FWCore/ParameterSet/interface/PluginDescription.h index 17780f9bf3d7e..844ca689c1c3e 100644 --- a/FWCore/ParameterSet/interface/PluginDescription.h +++ b/FWCore/ParameterSet/interface/PluginDescription.h @@ -190,7 +190,7 @@ namespace edm { } bool exists_(ParameterSet const& pset) const final { - return pset.existsAs(typeLabel_, typeLabelIsTracked_); + CMS_SA_ALLOW return pset.existsAs(typeLabel_, typeLabelIsTracked_); } bool partiallyExists_(ParameterSet const& pset) const final { return exists_(pset); } @@ -200,9 +200,10 @@ namespace edm { private: std::string findType(edm::ParameterSet const& iPSet) const { if (typeLabelIsTracked_) { - if (iPSet.existsAs(typeLabel_) || defaultType_.empty()) { + CMS_SA_ALLOW if (iPSet.existsAs(typeLabel_) || defaultType_.empty()) { return iPSet.getParameter(typeLabel_); - } else { + } + else { return defaultType_; } }