From df64b80fb080d7ed02a2ed1d6837439a6e579812 Mon Sep 17 00:00:00 2001
From: John Chapman <jchapman@cern.ch>
Date: Tue, 1 Sep 2020 17:03:09 +0200
Subject: [PATCH] clang-tidy fixes for the G4AtlasTools package

---
 Simulation/G4Atlas/G4AtlasTools/src/DetectorGeometryBase.cxx | 2 +-
 Simulation/G4Atlas/G4AtlasTools/src/RegionCreator.cxx        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Simulation/G4Atlas/G4AtlasTools/src/DetectorGeometryBase.cxx b/Simulation/G4Atlas/G4AtlasTools/src/DetectorGeometryBase.cxx
index 08764aa429c..ed9f7ada0b8 100644
--- a/Simulation/G4Atlas/G4AtlasTools/src/DetectorGeometryBase.cxx
+++ b/Simulation/G4Atlas/G4AtlasTools/src/DetectorGeometryBase.cxx
@@ -22,7 +22,7 @@ StatusCode DetectorGeometryBase::initialize()
     {
       m_detectorName = this->name();
       // re-initialize m_detectorName in order to take the real detector name rather than the path to it
-      size_t ipos=m_detectorName.value().find_last_of(".");
+      size_t ipos=m_detectorName.value().find_last_of('.');
       size_t length=m_detectorName.value().size();
       if (ipos<length)
         {
diff --git a/Simulation/G4Atlas/G4AtlasTools/src/RegionCreator.cxx b/Simulation/G4Atlas/G4AtlasTools/src/RegionCreator.cxx
index 535d5f8cf55..432382c8fc8 100644
--- a/Simulation/G4Atlas/G4AtlasTools/src/RegionCreator.cxx
+++ b/Simulation/G4Atlas/G4AtlasTools/src/RegionCreator.cxx
@@ -24,7 +24,7 @@ StatusCode RegionCreator::initialize()
   if (m_regionName.empty()) {
     m_regionName = this->name();
     // re-initialize m_regionName in order to take the real tool name rather than the path to it
-    size_t ipos=m_regionName.value().find_last_of(".");
+    size_t ipos=m_regionName.value().find_last_of('.');
     size_t length=m_regionName.value().size();
     if (ipos<length) {
       ATH_MSG_VERBOSE( "m_regionName: " << m_regionName.value() << " needs to be reset.");
-- 
GitLab