From c6b92702e04c2e76f739509cb5b12dec5f563a3c Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Thu, 15 Aug 2019 14:30:37 +0200 Subject: [PATCH] [App/IO] GoCAD; Limit scope of variable. --- Applications/FileIO/GocadIO/GocadAsciiReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/FileIO/GocadIO/GocadAsciiReader.cpp b/Applications/FileIO/GocadIO/GocadAsciiReader.cpp index bc728e1eac5..6c031b78f31 100644 --- a/Applications/FileIO/GocadIO/GocadAsciiReader.cpp +++ b/Applications/FileIO/GocadIO/GocadAsciiReader.cpp @@ -261,7 +261,6 @@ bool parseNodes(std::ifstream& in, MeshLib::Properties& mesh_prop) { NodeType t = NodeType::UNSPECIFIED; - double value; std::vector<std::string> const array_names = mesh_prop.getPropertyVectorNames(); std::streampos pos = in.tellg(); @@ -307,6 +306,7 @@ bool parseNodes(std::ifstream& in, { continue; } + double value; sstr >> value; mesh_prop.getPropertyVector<double>(name)->push_back(value); } -- GitLab