Skip to content
Snippets Groups Projects
Commit c2153d62 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

ElectronPhotonFourMomentumCorrection: Fix cppcheck warnings.

Pass large objects by const reference, not by value.
parent 7b03dfa1
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
......@@ -187,7 +187,7 @@ private:
return AbsEtaCaloPredicateFactory(edges.first, edges.second);
}
const std::vector<EgammaPredicate> AbsEtaCaloPredicatesFactory(const std::vector<std::pair<double, double>> edges) const
const std::vector<EgammaPredicate> AbsEtaCaloPredicatesFactory(const std::vector<std::pair<double, double>>& edges) const
{
std::vector<EgammaPredicate> result;
result.reserve(edges.size());
......@@ -197,7 +197,7 @@ private:
return result;
}
const std::vector<EgammaPredicate> AbsEtaCaloPredicatesFactory(const std::vector<double> edges) const
const std::vector<EgammaPredicate> AbsEtaCaloPredicatesFactory(const std::vector<double>& edges) const
{
std::vector<EgammaPredicate> result;
result.reserve(edges.size() - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment