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

TBDetDescr: Fix cppcheck 2.14 warnings.

Prefer returning const references to members rather than copies.
parent 5a494cab
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
//==============================================
......@@ -31,7 +31,7 @@ public:
// accessor
TBElementID::TBElementID id() const { return m_id; }
std::string name() const { return m_name; }
const std::string& name() const { return m_name; }
Amg::Vector3D position() const { return m_position; }
Amg::RotationMatrix3D rotation() const { return m_rotation; }
......
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