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

EventPrimitives: Fix cppcheck warnings.

Pass class instances by const reference, not by value.
parent 1a1ea240
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
///////////////////////////////////////////////////////////////////
......@@ -40,7 +40,7 @@ namespace Amg {
}
inline std::string toString( const MatrixX& matrix, int precision = 4, std::string offset="" ){
inline std::string toString( const MatrixX& matrix, int precision = 4, const std::string& offset="" ){
std::ostringstream sout;
sout << std::setiosflags(std::ios::fixed) << std::setprecision(precision);
......@@ -72,7 +72,7 @@ namespace Amg {
}
#ifndef XAOD_STANDALONE
inline std::string toString( const CLHEP::HepGenMatrix& matrix, int precision = 4, std::string offset="" ){
inline std::string toString( const CLHEP::HepGenMatrix& matrix, int precision = 4, const std::string& offset="" ){
std::ostringstream sout;
sout << std::setiosflags(std::ios::fixed) << std::setprecision(precision);
......
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