Commit 56152aef authored by Jan Möbius's avatar Jan Möbius

cppcheck fixes

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17358 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 4619e730
...@@ -579,7 +579,6 @@ bool FileOFFPlugin::parseASCII(std::istream& _in, OFFImporter& _importer, DataTy ...@@ -579,7 +579,6 @@ bool FileOFFPlugin::parseASCII(std::istream& _in, OFFImporter& _importer, DataTy
OpenMesh::Vec4i c4; OpenMesh::Vec4i c4;
OpenMesh::Vec4f c4f; OpenMesh::Vec4f c4f;
std::vector<VertexHandle> vhandles; std::vector<VertexHandle> vhandles;
VertexHandle vh;
FaceHandle fh; FaceHandle fh;
int objectId = -1; int objectId = -1;
...@@ -632,7 +631,7 @@ bool FileOFFPlugin::parseASCII(std::istream& _in, OFFImporter& _importer, DataTy ...@@ -632,7 +631,7 @@ bool FileOFFPlugin::parseASCII(std::istream& _in, OFFImporter& _importer, DataTy
// Always read VERTEX // Always read VERTEX
_in >> v[0] >> v[1] >> v[2]; _in >> v[0] >> v[1] >> v[2];
vh = _importer.addVertex(v); const VertexHandle vh = _importer.addVertex(v);
// perhaps read NORMAL // perhaps read NORMAL
if ( _importer.hasVertexNormals() ){ if ( _importer.hasVertexNormals() ){
...@@ -888,7 +887,6 @@ bool FileOFFPlugin::parseBinary(std::istream& _in, OFFImporter& _importer, DataT ...@@ -888,7 +887,6 @@ bool FileOFFPlugin::parseBinary(std::istream& _in, OFFImporter& _importer, DataT
float alpha = 1.0f; float alpha = 1.0f;
OpenMesh::Vec2f t; OpenMesh::Vec2f t;
std::vector<VertexHandle> vhandles; std::vector<VertexHandle> vhandles;
VertexHandle vh;
FaceHandle fh; FaceHandle fh;
int objectId = -1; int objectId = -1;
...@@ -927,7 +925,7 @@ bool FileOFFPlugin::parseBinary(std::istream& _in, OFFImporter& _importer, DataT ...@@ -927,7 +925,7 @@ bool FileOFFPlugin::parseBinary(std::istream& _in, OFFImporter& _importer, DataT
readValue(_in, v[1]); readValue(_in, v[1]);
readValue(_in, v[2]); readValue(_in, v[2]);
vh = _importer.addVertex(v); const VertexHandle vh = _importer.addVertex(v);
if ( _importer.hasVertexNormals() ) { if ( _importer.hasVertexNormals() ) {
readValue(_in, n[0]); readValue(_in, n[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment