From 145fe4a36418c25e1fa2ff9090ae90ab9866e9ff Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 3 Jan 2016 19:30:03 +0100 Subject: [PATCH] + fix build failure with gcc --- src/Mod/Mesh/App/Core/MeshIO.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Mod/Mesh/App/Core/MeshIO.cpp b/src/Mod/Mesh/App/Core/MeshIO.cpp index 71198287c..cf60bd6d7 100644 --- a/src/Mod/Mesh/App/Core/MeshIO.cpp +++ b/src/Mod/Mesh/App/Core/MeshIO.cpp @@ -2557,11 +2557,6 @@ MeshPointFacetAdjacency::MeshPointFacetAdjacency(std::size_t p, MeshFacetArray& MeshPointFacetAdjacency::~MeshPointFacetAdjacency() { - std::size_t numPoints = pointFacetAdjacency.size(); - for (std::size_t i = 0; i < numPoints; i++) { - pointFacetAdjacency[i].swap(std::vector()); - } - pointFacetAdjacency.clear(); } void MeshPointFacetAdjacency::Build() @@ -2578,7 +2573,7 @@ void MeshPointFacetAdjacency::Build() pointFacetAdjacency[i].reserve(numFacetAdjacency[i]); std::size_t numFacets = facets.size(); - for (int i = 0; i < numFacets; i++) { + for (std::size_t i = 0; i < numFacets; i++) { for (int j = 0; j < 3; j++) { pointFacetAdjacency[facets[i]._aulPoints[j]].push_back(i); } @@ -2588,7 +2583,6 @@ void MeshPointFacetAdjacency::Build() void MeshPointFacetAdjacency::SetFacetNeighbourhood() { std::size_t numFacets = facets.size(); - std::size_t index = 0; for (std::size_t index = 0; index < numFacets; index++) { MeshFacet& facet1 = facets[index]; for (int i = 0; i < 3; i++) {