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

TileSimEvent: Fix cppcheck warning.

 - Pass class instances by const reference, not by value.
parent 3f28ae45
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
*/ */
//******************************************************************** //********************************************************************
...@@ -102,7 +102,7 @@ public: ...@@ -102,7 +102,7 @@ public:
operator std::string() const; operator std::string() const;
/** @brief Print contents of one vector to output stream */ /** @brief Print contents of one vector to output stream */
static void print_to_stream ( const std::vector<float> val, static void print_to_stream ( const std::vector<float>& val,
const std::string & label, const std::string & label,
std::ostringstream & text); std::ostringstream & text);
......
...@@ -157,7 +157,7 @@ TileHit::operator std::string() const ...@@ -157,7 +157,7 @@ TileHit::operator std::string() const
return text.str(); return text.str();
} }
void TileHit::print_to_stream ( const std::vector<float> val, void TileHit::print_to_stream ( const std::vector<float>& val,
const std::string & label, const std::string & label,
std::ostringstream & text) std::ostringstream & text)
{ {
......
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