From 56152aefbc823fbadab3b6a6cc1562f9a57a6cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 21 Aug 2013 11:20:43 +0000 Subject: [PATCH] cppcheck fixes git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17358 383ad7c9-94d9-4d36-a494-682f7c89f535 --- FileOFF.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/FileOFF.cc b/FileOFF.cc index 45fcf5c..3181392 100644 --- a/FileOFF.cc +++ b/FileOFF.cc @@ -579,7 +579,6 @@ bool FileOFFPlugin::parseASCII(std::istream& _in, OFFImporter& _importer, DataTy OpenMesh::Vec4i c4; OpenMesh::Vec4f c4f; std::vector vhandles; - VertexHandle vh; FaceHandle fh; int objectId = -1; @@ -632,7 +631,7 @@ bool FileOFFPlugin::parseASCII(std::istream& _in, OFFImporter& _importer, DataTy // Always read VERTEX _in >> v[0] >> v[1] >> v[2]; - vh = _importer.addVertex(v); + const VertexHandle vh = _importer.addVertex(v); // perhaps read NORMAL if ( _importer.hasVertexNormals() ){ @@ -888,7 +887,6 @@ bool FileOFFPlugin::parseBinary(std::istream& _in, OFFImporter& _importer, DataT float alpha = 1.0f; OpenMesh::Vec2f t; std::vector vhandles; - VertexHandle vh; FaceHandle fh; int objectId = -1; @@ -927,7 +925,7 @@ bool FileOFFPlugin::parseBinary(std::istream& _in, OFFImporter& _importer, DataT readValue(_in, v[1]); readValue(_in, v[2]); - vh = _importer.addVertex(v); + const VertexHandle vh = _importer.addVertex(v); if ( _importer.hasVertexNormals() ) { readValue(_in, n[0]); -- GitLab