diff --git a/Framework/Core/include/Framework/ConfigParamsHelper.h b/Framework/Core/include/Framework/ConfigParamsHelper.h index 0500f705f45d1..3783cdb374bd1 100644 --- a/Framework/Core/include/Framework/ConfigParamsHelper.h +++ b/Framework/Core/include/Framework/ConfigParamsHelper.h @@ -35,7 +35,7 @@ struct ConfigParamsHelper { /// all options which are found in the vetos are skipped static bool dpl2BoostOptions(const std::vector& spec, options_description& options, - boost::program_options::options_description vetos = options_description()); + boost::program_options::options_description const& vetos = options_description()); /// Check if option is defined static bool hasOption(const std::vector& specs, const std::string& optName); diff --git a/Framework/Core/src/ConfigParamsHelper.cxx b/Framework/Core/src/ConfigParamsHelper.cxx index a7b32c86e3eca..fc59710fd71a0 100644 --- a/Framework/Core/src/ConfigParamsHelper.cxx +++ b/Framework/Core/src/ConfigParamsHelper.cxx @@ -136,7 +136,7 @@ void ConfigParamsHelper::addOptionIfMissing(std::vector& specs, /// this is used for filtering the command line argument bool ConfigParamsHelper::dpl2BoostOptions(const std::vector& spec, boost::program_options::options_description& options, - boost::program_options::options_description vetos) + boost::program_options::options_description const& vetos) { bool haveOption = false; for (const auto& configSpec : spec) {