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

Get rid of cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13237 383ad7c9-94d9-4d36-a494-682f7c89f535
parent aeed8cfe
......@@ -68,7 +68,7 @@ bool getSourceMeshes( std::vector<PolyMesh*>& _meshes ) {
_meshes.push_back ( dynamic_cast< PolyMeshObject* >( *o_it )->mesh() );
}
return (_meshes.size() > 0 );
return ( !_meshes.empty() );
}
bool getTargetMeshes( std::vector<PolyMesh*>& _meshes ) {
......@@ -81,7 +81,7 @@ bool getTargetMeshes( std::vector<PolyMesh*>& _meshes ) {
_meshes.push_back ( dynamic_cast< PolyMeshObject* >( *o_it )->mesh() );
}
return (_meshes.size() > 0 );
return ( !_meshes.empty() );
}
bool getObject( int _identifier , PolyMeshObject*& _object ) {
......
......@@ -65,7 +65,7 @@ bool getSourceMeshes( std::vector<TriMesh*>& _meshes ) {
_meshes.push_back ( dynamic_cast< TriMeshObject* >( *o_it )->mesh() );
}
return (_meshes.size() > 0 );
return ( !_meshes.empty() );
}
bool getTargetMeshes( std::vector<TriMesh*>& _meshes ) {
......@@ -78,7 +78,7 @@ bool getTargetMeshes( std::vector<TriMesh*>& _meshes ) {
_meshes.push_back ( dynamic_cast< TriMeshObject* >( *o_it )->mesh() );
}
return (_meshes.size() > 0 );
return ( !_meshes.empty() );
}
......
Supports Markdown
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