Skip to content

Commit 410a6be

Browse files
authored
Merge pull request #157 from zhaozhiwen/fix/110-cad-dirlocation-mutation
Stop mutating dirLocation while importing CAD files
2 parents 9ff0868 + dd6e16a commit 410a6be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gemc/gsystem/gsystemFactories/cad/loadGeometry.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void GSystemCADFactory::loadGeometry(GSystem* s) {
2626

2727
// Import each STL as a volume. Each volume name is derived from the filename.
2828
for (const auto& cf : cadFiles) {
29-
s->addVolumeFromFile(GSYSTEMCADTFACTORYLABEL, dirLocation.append("/").append(cf));
29+
s->addVolumeFromFile(GSYSTEMCADTFACTORYLABEL, dirLocation + "/" + cf);
3030
}
3131

3232
// If the file cad__<variation>.yaml is found in dirLocation, modify the gvolumes accordingly.

0 commit comments

Comments
 (0)