diff --git a/gemc/gsystem/gsystemFactories/cad/loadGeometry.cc b/gemc/gsystem/gsystemFactories/cad/loadGeometry.cc index e963957d..c51366c0 100644 --- a/gemc/gsystem/gsystemFactories/cad/loadGeometry.cc +++ b/gemc/gsystem/gsystemFactories/cad/loadGeometry.cc @@ -26,7 +26,7 @@ void GSystemCADFactory::loadGeometry(GSystem* s) { // Import each STL as a volume. Each volume name is derived from the filename. for (const auto& cf : cadFiles) { - s->addVolumeFromFile(GSYSTEMCADTFACTORYLABEL, dirLocation.append("/").append(cf)); + s->addVolumeFromFile(GSYSTEMCADTFACTORYLABEL, dirLocation + "/" + cf); } // If the file cad__.yaml is found in dirLocation, modify the gvolumes accordingly.