diff --git a/LArCalorimeter/LArRecConditions/LArRecConditions/LArBadChannelParser.h b/LArCalorimeter/LArRecConditions/LArRecConditions/LArBadChannelParser.h
index 1372cdcfbdc42ec4989596718b2f0c3429a33445..a660bf7a046303b9bd5b6818b9d39a9418f58877 100644
--- a/LArCalorimeter/LArRecConditions/LArRecConditions/LArBadChannelParser.h
+++ b/LArCalorimeter/LArRecConditions/LArRecConditions/LArBadChannelParser.h
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
 */
 
 #ifndef LArBadChannelParser_H
@@ -49,7 +49,7 @@ private:
 	// Can not construct a parser without giving filename or MsgStream.
 	LArBadChannelParser();
 
-	std::vector<int> getIdFields(const std::vector<std::string>& words) const;
+	std::vector<int> getIdFields(const std::vector<std::string>& words);
 	std::vector<std::string> parseLine(std::string& line) const;
 
 	template<typename T> 
diff --git a/LArCalorimeter/LArRecConditions/src/LArBadChannelParser.cxx b/LArCalorimeter/LArRecConditions/src/LArBadChannelParser.cxx
index 08e909a1042a3603e67d1c781e6b360b9e412465..9c3c43ccfcbae96ae4ca529c700935bc0e7d7cc8 100644
--- a/LArCalorimeter/LArRecConditions/src/LArBadChannelParser.cxx
+++ b/LArCalorimeter/LArRecConditions/src/LArBadChannelParser.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
 */
 
 #include "LArRecConditions/LArBadChannelParser.h"
@@ -51,7 +51,7 @@ int upper(int c) {
 }
 
 
-std::vector<int> LArBadChannelParser::getIdFields(const std::vector<std::string>& words) const
+std::vector<int> LArBadChannelParser::getIdFields(const std::vector<std::string>& words)
 {
   std::vector<int> result;
   std::string w;