diff --git a/Core/include/Acts/Seeding/SeedFilter.ipp b/Core/include/Acts/Seeding/SeedFilter.ipp index 4c4ac174397..ae80d5bbf51 100644 --- a/Core/include/Acts/Seeding/SeedFilter.ipp +++ b/Core/include/Acts/Seeding/SeedFilter.ipp @@ -18,7 +18,7 @@ template SeedFilter::SeedFilter( SeedFilterConfig config, IExperimentCuts* expCuts /* = 0*/) - : m_cfg(config), m_experimentCuts(expCuts) { + : m_cfg(std::move(config)), m_experimentCuts(expCuts) { if (!config.isInInternalUnits) { throw std::runtime_error( "SeedFilterConfig not in ACTS internal units in SeedFilter"); @@ -29,7 +29,9 @@ template SeedFilter::SeedFilter( SeedFilterConfig config, std::unique_ptr logger, IExperimentCuts* expCuts /* = 0*/) - : m_cfg(config), m_logger(std::move(logger)), m_experimentCuts(expCuts) { + : m_cfg(std::move(config)), + m_logger(std::move(logger)), + m_experimentCuts(expCuts) { if (!config.isInInternalUnits) { throw std::runtime_error( "SeedFilterConfig not in ACTS internal units in SeedFilter");