More cppcheck fixes in OM

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1075 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2014-05-30 10:15:12 +00:00
parent 6d58a6e16b
commit ff2053119e
4 changed files with 6 additions and 4 deletions

View File

@@ -535,7 +535,6 @@ binary_size(BaseExporter& _be, Options _opt) const
{
size_t header(0);
size_t data(0);
size_t _3longs(3*sizeof(long));
size_t _3floats(3*sizeof(float));
size_t _3ui(3*sizeof(unsigned int));
size_t _4ui(4*sizeof(unsigned int));
@@ -544,6 +543,9 @@ binary_size(BaseExporter& _be, Options _opt) const
return 0;
else
{
size_t _3longs(3*sizeof(long));
header += 11; // 'OFF BINARY\n'
header += _3longs; // #V #F #E
data += _be.n_vertices() * _3floats; // vertex data