diff --git a/GeoModelExamples/HelloGeoRead2G4/HelloGeoReadG4.cpp b/GeoModelExamples/HelloGeoRead2G4/HelloGeoReadG4.cpp index b656e33e35f172eb3faeaec6bde5a9ee655b880e..41a81541636bd4afaad5c060d87830b12f3d9c02 100644 --- a/GeoModelExamples/HelloGeoRead2G4/HelloGeoReadG4.cpp +++ b/GeoModelExamples/HelloGeoRead2G4/HelloGeoReadG4.cpp @@ -97,7 +97,7 @@ int main(int argc, char* argv[]) { std::cout << "ReadGeoModel set.\n"; /* build the GeoModel geometry */ - GeoPhysVol* world = + const GeoVPhysVol* world = readInGeo.buildGeoModel(); // builds the whole GeoModel tree in memory // and get an handle to the 'world' volume std::cout << "ReadGeoModel::buildGeoModel() done.\n";