From a5f8e37aeff910a909c9aad5c162b79f2e2014f3 Mon Sep 17 00:00:00 2001
From: Marko Petric <marko.petric@cern.ch>
Date: Wed, 29 Nov 2017 10:20:59 +0100
Subject: [PATCH] Remove shadow

---
 DDCore/src/plugins/VisProcessor.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/DDCore/src/plugins/VisProcessor.cpp b/DDCore/src/plugins/VisProcessor.cpp
index 7b3796b1a..47009f6dc 100644
--- a/DDCore/src/plugins/VisProcessor.cpp
+++ b/DDCore/src/plugins/VisProcessor.cpp
@@ -162,8 +162,8 @@ int VisProcessor::operator()(PlacedVolume pv, int /* level */)   {
       ++numInactive;
     }
     if ( !attr.isValid() && inactiveVis.isValid() )  {
-      for ( Material m : inactiveMaterials )   {
-        if ( m.ptr() == vol.material().ptr() )   {
+      for ( Material imat : inactiveMaterials )   {
+        if ( imat.ptr() == vol.material().ptr() )   {
           attr = inactiveVis;
           ++numInactive;
           break;
-- 
GitLab