Commit 98d96a74 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13897 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8b021578
......@@ -63,7 +63,7 @@ bool getSourceMeshes( std::vector<HexahedralMesh*>& _meshes )
std::cerr << "ERROR: HexahedralMesh getSourceMeshes fatal error\n";
}
return (_meshes.size() > 0 );
return ( !_meshes.empty() );
}
......@@ -83,7 +83,7 @@ bool getTargetMeshes( std::vector<HexahedralMesh*>& _meshes )
std::cerr << "ERROR: HexahedralMesh getTargetMeshes fatal error\n";
}
return (_meshes.size() > 0 );
return ( !_meshes.empty() );
}
......
......@@ -63,7 +63,7 @@ bool getSourceMeshes( std::vector<PolyhedralMesh*>& _meshes )
std::cerr << "ERROR: PolyhedralMesh getSourceMeshes fatal error\n";
}
return (_meshes.size() > 0 );
return ( !_meshes.empty() );
}
......@@ -83,7 +83,7 @@ bool getTargetMeshes( std::vector<PolyhedralMesh*>& _meshes )
std::cerr << "ERROR: PolyhedralMesh getTargetMeshes fatal error\n";
}
return (_meshes.size() > 0 );
return ( !_meshes.empty() );
}
......
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