Skip to content

Commit 290b414

Browse files
committed
DPL: speedup startup
Avoid copying vetos by value, over and over again.
1 parent c5ed8cf commit 290b414

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Framework/Core/include/Framework/ConfigParamsHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct ConfigParamsHelper {
3535
/// all options which are found in the vetos are skipped
3636
static bool dpl2BoostOptions(const std::vector<ConfigParamSpec>& spec,
3737
options_description& options,
38-
boost::program_options::options_description vetos = options_description());
38+
boost::program_options::options_description const& vetos = options_description());
3939

4040
/// Check if option is defined
4141
static bool hasOption(const std::vector<ConfigParamSpec>& specs, const std::string& optName);

Framework/Core/src/ConfigParamsHelper.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void ConfigParamsHelper::addOptionIfMissing(std::vector<ConfigParamSpec>& specs,
136136
/// this is used for filtering the command line argument
137137
bool ConfigParamsHelper::dpl2BoostOptions(const std::vector<ConfigParamSpec>& spec,
138138
boost::program_options::options_description& options,
139-
boost::program_options::options_description vetos)
139+
boost::program_options::options_description const& vetos)
140140
{
141141
bool haveOption = false;
142142
for (const auto& configSpec : spec) {

0 commit comments

Comments
 (0)