Skip to content
Snippets Groups Projects
Commit ca12abb9 authored by Johannes Junggeburth's avatar Johannes Junggeburth :dog2: Committed by Johannes Junggeburth
Browse files

Finally fix the compilation

parent de970dcb
No related branches found
No related tags found
1 merge request!246Developments for the GeoModelXMLDumper - The first nail in AGDD's coffin
Pipeline #8389742 passed
......@@ -33,7 +33,7 @@ GeoIntrusivePtr<RCBase> MakeShapeShift::make(const xercesc::DOMElement *element,
}
switch (elementIndex) {
case 0: { // First element is first shaperef
shape = static_cast<GeoShape*>(gmxUtil.tagHandler.shaperef.process(dynamic_cast<DOMElement*> (child), gmxUtil));
shape = dynamic_pointer_cast<GeoShape>(gmxUtil.tagHandler.shaperef.process(dynamic_cast<DOMElement*> (child), gmxUtil));
break;
} case 1: { // Second element is transformation or transformationref
char *toRelease = XMLString::transcode(child->getNodeName());
......@@ -57,6 +57,6 @@ GeoIntrusivePtr<RCBase> MakeShapeShift::make(const xercesc::DOMElement *element,
if (!sorter.compare(GeoTrf::Transform3D::Identity(), hepXf)) {
return shape;
}
return const_cast(cacheShape(make_intrusive<GeoShapeShift>(shape, hepXf)));
return const_pointer_cast(cacheShape(make_intrusive<GeoShapeShift>(shape, hepXf)));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment