From 72f0c0d87376d35606d1f2a19a18e5c3ecf53443 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Tue, 18 Sep 2012 09:13:08 +0200 Subject: [PATCH] removed a warning in Mesh::removeUnusedMeshNodes() --- MeshLib/Mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MeshLib/Mesh.cpp b/MeshLib/Mesh.cpp index 10b6c3532a3..1346ed09d74 100644 --- a/MeshLib/Mesh.cpp +++ b/MeshLib/Mesh.cpp @@ -248,7 +248,7 @@ void Mesh::setNodesConnectedByElements() for (unsigned l(0); l<nConnNodes; ++l) if (c_node == conn_vec[l]) is_in_vector = true; - if (!is_in_vector) + if (!is_in_vector) conn_vec.push_back(_nodes[c_node->getID()]); } } @@ -260,7 +260,7 @@ void Mesh::removeUnusedMeshNodes() { unsigned count(0); std::vector<MeshLib::Node*>::iterator it (this->_nodes.begin()); - for (it; it != this->_nodes.end();) + while(it != this->_nodes.end()) { if ((*it)->getNElements() == 0) { -- GitLab