Skip to content
Snippets Groups Projects
Commit 8669a915 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'cppcheck.MuonAlignmentData-20200902' into 'master'

MuonAlignmentData: Fix cppcheck warnings.

See merge request atlas/athena!36127
parents be231ee8 9c54f6c7
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ class CscInternalAlignmentPar : public MuonAlignmentPar {
// destructor
virtual ~CscInternalAlignmentPar() override = default;
void setAmdbId(std::string type, int jff, int jzz, int job, int wireLayer);
void setAmdbId(const std::string& type, int jff, int jzz, int job, int wireLayer);
void getAmdbId(std::string& type, int& jff, int& jzz, int& job, int& wireLayer) const;
void setParameters(float s, float z, float t,
......
......@@ -21,7 +21,7 @@ class MuonAlignmentPar {
Identifier identify() const {return m_stationId;}
std::string key() const {return m_stationKey;}
void setAmdbId(std::string type, int jff, int jzz, int job);
void setAmdbId(const std::string& type, int jff, int jzz, int job);
void getAmdbId(std::string& type, int& jff, int& jzz, int& job) const;
bool isNew() const {return m_isNew;}
......
......@@ -37,7 +37,7 @@ void CscInternalAlignmentPar::getParameters(float& s, float& z, float& t,
rotT = m_rotT;
}
void CscInternalAlignmentPar::setAmdbId(std::string type, int jff, int jzz, int job, int wireLayer)
void CscInternalAlignmentPar::setAmdbId(const std::string& type, int jff, int jzz, int job, int wireLayer)
{
m_Type = type;
m_Jff = jff;
......
......@@ -8,7 +8,7 @@ MuonAlignmentPar::MuonAlignmentPar() :
m_Jff(0), m_Jzz(0), m_Job(0), m_isNew(false)
{ }
void MuonAlignmentPar::setAmdbId(std::string type, int jff, int jzz, int job)
void MuonAlignmentPar::setAmdbId(const std::string& type, int jff, int jzz, int job)
{
m_Type = type;
m_Jff = jff;
......
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