From f9b7e7633bba32f293c92defc1f8e788b6e0dcf3 Mon Sep 17 00:00:00 2001
From: Johannes Junggeburth <johannes.josef.junggeburth@cern.ch>
Date: Mon, 11 Mar 2024 08:36:21 +0100
Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s)

---
 GeoModelTools/GeoModelXML/GeoModelXml/src/MakeShapeShift.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/GeoModelTools/GeoModelXML/GeoModelXml/src/MakeShapeShift.cxx b/GeoModelTools/GeoModelXML/GeoModelXml/src/MakeShapeShift.cxx
index 540b8b752..137e2568f 100644
--- a/GeoModelTools/GeoModelXML/GeoModelXml/src/MakeShapeShift.cxx
+++ b/GeoModelTools/GeoModelXML/GeoModelXml/src/MakeShapeShift.cxx
@@ -57,6 +57,6 @@ GeoIntrusivePtr<RCBase> MakeShapeShift::make(const xercesc::DOMElement *element,
     if (!sorter.compare(GeoTrf::Transform3D::Identity(), hepXf)) {
         return shape;
     }    
-    return cacheShape(make_intrusive<GeoShapeShift>(shape, hepXf));
+    return const_cast(cacheShape(make_intrusive<GeoShapeShift>(shape, hepXf)));
 }
 
-- 
GitLab