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

LArIdentifier: Fix cppcheck warnings.

cppcheck warnings: Pass std::string by reference.
parent 96aa2f5c
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-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef LARHARDWAREID_EXCEPTION_H
......@@ -24,12 +24,12 @@ public:
/**
* constructor to be used
*/
LArOnlID_Exception(std::string l_message , int l_code) : m_message ( l_message ) , m_code ( l_code ) { }
LArOnlID_Exception(const std::string& l_message , int l_code) : m_message ( l_message ) , m_code ( l_code ) { }
/**
* set error message
*/
void message(std::string l_message) { m_message = l_message ;}
void message(const std::string& l_message) { m_message = l_message ;}
/**
* return error message <br>
......
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