Commit 1c95a545 authored by Jan Möbius's avatar Jan Möbius

Fixed all stl cppcheck warnings regarding empty checks.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13308 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 68dedca4
......@@ -269,7 +269,7 @@ bool getSourceIdentifiers( std::vector<int>& _identifiers ) {
if ( o_it->source() )
_identifiers.push_back ( o_it->id() );
}
return (_identifiers.size() >0 );
return ( ! _identifiers.empty() );
}
bool getTargetIdentifiers( std::vector<int>& _identifiers ) {
......@@ -279,7 +279,7 @@ bool getTargetIdentifiers( std::vector<int>& _identifiers ) {
if ( o_it->target() )
_identifiers.push_back ( o_it->id() );
}
return (_identifiers.size() >0 );
return ( !_identifiers.empty() );
}
// ===============================================================================
......@@ -351,7 +351,7 @@ bool getAllMeshes( std::vector<int>& _identifiers ) {
_identifiers.push_back( o_it->id() );
}
return (_identifiers.size() > 0);
return (!_identifiers.empty());
}
bool get_all_object_identifiers( std::vector<int>& _identifiers ) {
......@@ -364,7 +364,7 @@ bool get_all_object_identifiers( std::vector<int>& _identifiers ) {
_identifiers.push_back( o_it->id() );
}
return (_identifiers.size() > 0);
return ( !_identifiers.empty() );
}
void setBackColor( OpenMesh::Vec4f _color) {
......
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