Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions FWCore/ParameterSet/interface/PluginDescription.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ namespace edm {
}

bool exists_(ParameterSet const& pset) const final {
return pset.existsAs<std::string>(typeLabel_, typeLabelIsTracked_);
CMS_SA_ALLOW return pset.existsAs<std::string>(typeLabel_, typeLabelIsTracked_);
}

bool partiallyExists_(ParameterSet const& pset) const final { return exists_(pset); }
Expand All @@ -200,9 +200,10 @@ namespace edm {
private:
std::string findType(edm::ParameterSet const& iPSet) const {
if (typeLabelIsTracked_) {
if (iPSet.existsAs<std::string>(typeLabel_) || defaultType_.empty()) {
CMS_SA_ALLOW if (iPSet.existsAs<std::string>(typeLabel_) || defaultType_.empty()) {
return iPSet.getParameter<std::string>(typeLabel_);
} else {
}
else {
return defaultType_;
}
}
Expand Down