diff --git a/LArCalorimeter/LArIdentifier/LArIdentifier/LArOnlID_Exception.h b/LArCalorimeter/LArIdentifier/LArIdentifier/LArOnlID_Exception.h
index 30f467e4c8434da9ca704a313a3b978dc6e69d06..b7dbe3cc109ee4f220b6d0862b0a20e3ba269c99 100755
--- a/LArCalorimeter/LArIdentifier/LArIdentifier/LArOnlID_Exception.h
+++ b/LArCalorimeter/LArIdentifier/LArIdentifier/LArOnlID_Exception.h
@@ -1,5 +1,5 @@
 /*
-  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>