Skip to content

Commit 578dd92

Browse files
authored
Fix while loop syntax for shape name generation
1 parent 31f703f commit 578dd92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Detectors/Upgrades/ALICE3/TRK/simulation/src/VDGeometryBuilder.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ inline const char* ensureShapeName(TGeoVolume* v)
9090
int k = 0;
9191
TString cand = wanted;
9292
auto* shapes = gGeoManager ? gGeoManager->GetListOfShapes() : nullptr;
93-
while (shapes && shapes->FindObject(cand))
93+
while (shapes && shapes->FindObject(cand)) {
9494
cand = Form("%s_%d", wanted.Data(), ++k);
95+
}
9596
sh->SetName(cand);
9697
if (shapes && !shapes->FindObject(cand)) {
9798
shapes->Add(sh);

0 commit comments

Comments
 (0)