diff --git a/MuonSpectrometer/MuonGeoModelTest/src/MuonGMCheck.cxx b/MuonSpectrometer/MuonGeoModelTest/src/MuonGMCheck.cxx index ba24b820013bea8355220e98e1ad522b30187b3f..c58417f2bee61de01226b0bf23b65fc5486d56e3 100644 --- a/MuonSpectrometer/MuonGeoModelTest/src/MuonGMCheck.cxx +++ b/MuonSpectrometer/MuonGeoModelTest/src/MuonGMCheck.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration */ /*************************************************************************** @@ -2495,7 +2495,9 @@ void MuonGMCheck::buildCscRegionSelectorMap() { if (aux1 == 0 || aux3 == 0) { ATH_MSG_ERROR("There is something wrong in buildCscRegionSelectorMap!"); ATH_MSG_ERROR("Variables aux1 and/or aux3 not initialized - Taking emergency exit!"); - throw; + throw std::runtime_error("There is something wrong in buildCscRegionSelectorMap! " + "Variables aux1 and/or aux3 not initialized"); + } ATH_MSG_INFO(extid << " hash Id " << Idhash << " new format " << new_extid); diff --git a/MuonSpectrometer/MuonGeoModelTest/test/CheckDifferences.cxx b/MuonSpectrometer/MuonGeoModelTest/test/CheckDifferences.cxx index 75f163f7f52d118d69b7449fd793c872ddddea60..912c53fae2e50fa9e2d19d4af0919ccd279d6af0 100644 --- a/MuonSpectrometer/MuonGeoModelTest/test/CheckDifferences.cxx +++ b/MuonSpectrometer/MuonGeoModelTest/test/CheckDifferences.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration */ #include <fstream> @@ -258,7 +258,7 @@ int MaterialMap::readMapRecord() { } std::string::size_type locapri; - std::string::size_type locchiudi; + std::string::size_type locchiudi = 0; if ((locapri = s.find('(')) != std::string::npos) { if ((locchiudi = s.find(')', locapri + 1)) != std::string::npos) { if (print_level < 1) std::cout << "first ( is at " << locapri << " first ) at " << locchiudi << std::endl;