diff --git a/HighGranularityTimingDetector/HGTD_DetDescr/HGTD_GeoModel/src/HGTD_DetectorTool.cxx b/HighGranularityTimingDetector/HGTD_DetDescr/HGTD_GeoModel/src/HGTD_DetectorTool.cxx index 04b9b3ad1182d9fef2269e7313b6e8839733569c..e1e7ce92c409145962c1e38c9b28cba4eb3e70b9 100644 --- a/HighGranularityTimingDetector/HGTD_DetDescr/HGTD_GeoModel/src/HGTD_DetectorTool.cxx +++ b/HighGranularityTimingDetector/HGTD_DetDescr/HGTD_GeoModel/src/HGTD_DetectorTool.cxx @@ -74,9 +74,9 @@ StatusCode HGTD_DetectorTool::create() { StatusCode HGTD_DetectorTool::clear() { // Release manager from the detector store - SG::DataProxy* _proxy = detStore()->proxy(ClassID_traits< HGTD_DetectorManager >::ID(),m_detectorManager->getName()); - if (_proxy) { - _proxy->reset(); + SG::DataProxy* proxy = detStore()->proxy(ClassID_traits< HGTD_DetectorManager >::ID(),m_detectorManager->getName()); + if (proxy) { + proxy->reset(); m_detectorManager = nullptr; }