From 2d4729b81e53b434ea8529799c063345f088b96b Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Sun, 23 Sep 2018 22:12:04 +0200
Subject: [PATCH] [App/IO] Don't shadow outer loop variable.

The outer loop is also over variable named 'k'.
---
 Applications/FileIO/TetGenInterface.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Applications/FileIO/TetGenInterface.cpp b/Applications/FileIO/TetGenInterface.cpp
index 7726fa4518c..b33d164e0fb 100644
--- a/Applications/FileIO/TetGenInterface.cpp
+++ b/Applications/FileIO/TetGenInterface.cpp
@@ -492,8 +492,9 @@ bool TetGenInterface::parseElements(std::ifstream& ins,
         }
         // insert new element into vector
         auto** tet_nodes = new MeshLib::Node*[4];
-        for (unsigned k(0); k<4; k++) {
-            tet_nodes[k] = nodes[ids[k]];
+        for (int n = 0; n < 4; n++)
+        {
+            tet_nodes[n] = nodes[ids[n]];
         }
         elements.push_back (new MeshLib::Tet(tet_nodes));
         materials.push_back(region);
-- 
GitLab