From d13b719cc46668d5f92084901ba68b299b95c5ba Mon Sep 17 00:00:00 2001 From: Andreas Salzburger Date: Tue, 3 Dec 2024 17:03:29 +0100 Subject: [PATCH] Make SonarCloud happy --- Examples/Python/src/TGeo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Examples/Python/src/TGeo.cpp b/Examples/Python/src/TGeo.cpp index eafbeeacb68..c67c2f3d653 100644 --- a/Examples/Python/src/TGeo.cpp +++ b/Examples/Python/src/TGeo.cpp @@ -61,7 +61,6 @@ void addTGeo(Context& ctx) { TGeoParser::Options tgpOptions; tgpOptions.volumeNames = {tVolume->GetName()}; tgpOptions.targetNames = sensitiveMatches; - tgpOptions.parseRanges = {}; tgpOptions.unit = scaleConversion; TGeoParser::State tgpState; tgpState.volume = tVolume; @@ -70,7 +69,7 @@ void addTGeo(Context& ctx) { TGeoParser::select(tgpState, tgpOptions, gmatrix); tgElements.reserve(tgpState.selectedNodes.size()); - for (auto& snode : tgpState.selectedNodes) { + for (const auto& snode : tgpState.selectedNodes) { auto identifier = Acts::TGeoDetectorElement::Identifier(); auto tgElement = TGeoLayerBuilder::defaultElementFactory( identifier, *snode.node, *snode.transform, localAxes,