Add constness to methods loading .db and returning 'world'.
Sarka Todorova correctly noted that the public loaders should return a const 'world' volume, so a const pointer to the GeoVPhysVol. I added constness to both the GeoModelRead::buildGeoModel() and to the new loadDB() helper methods. I then remove the constness in the visualization code, internally, otherwise it's more complicated to manipulate the geo tree.
parent
0dce221f
No related branches found
No related tags found
Showing
- GeoModelExamples/HelloGeoRead/main1.cpp 1 addition, 1 deletionGeoModelExamples/HelloGeoRead/main1.cpp
- GeoModelExamples/HelloGeoRead/main2.cpp 1 addition, 1 deletionGeoModelExamples/HelloGeoRead/main2.cpp
- GeoModelExamples/HelloGeoRead/main3.cpp 1 addition, 1 deletionGeoModelExamples/HelloGeoRead/main3.cpp
- GeoModelIO/GeoModelIOHelpers/GeoModelIOHelpers/GMIO.h 5 additions, 5 deletionsGeoModelIO/GeoModelIOHelpers/GeoModelIOHelpers/GMIO.h
- GeoModelIO/GeoModelRead/GeoModelRead/ReadGeoModel.h 1 addition, 1 deletionGeoModelIO/GeoModelRead/GeoModelRead/ReadGeoModel.h
- GeoModelIO/GeoModelRead/src/ReadGeoModel.cpp 1 addition, 1 deletionGeoModelIO/GeoModelRead/src/ReadGeoModel.cpp
- GeoModelVisualization/VP1GeometrySystems/src/VP1GeometrySystem.cxx 4 additions, 4 deletions...isualization/VP1GeometrySystems/src/VP1GeometrySystem.cxx
Loading
Please register or sign in to comment