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

cppcheck warning

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17348 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a2079607
......@@ -109,7 +109,8 @@ void MeshObjectSelectionPlugin::update_regions(MeshType* _mesh) {
typename MeshType::FaceIter f_it, f_end=_mesh->faces_end();
typename MeshType::FaceVertexIter fv_it;
typename MeshType::VertexHandle v0, v1, v2;
bool a, h;
bool h;
for(f_it=_mesh->faces_begin(); f_it!=f_end; ++f_it) {
fv_it = _mesh->fv_iter(*f_it);
......@@ -117,10 +118,10 @@ void MeshObjectSelectionPlugin::update_regions(MeshType* _mesh) {
v1 = *(++fv_it);
v2 = *(++fv_it);
a =(_mesh->status(v0).is_bit_set(AREA)|| _mesh->status(v1).is_bit_set(AREA)|| _mesh->status(v2).is_bit_set(AREA));
h =(_mesh->status(v0).is_bit_set(HANDLEAREA)&&
_mesh->status(v1).is_bit_set(HANDLEAREA)&&
_mesh->status(v2).is_bit_set(HANDLEAREA));
const bool a =(_mesh->status(v0).is_bit_set(AREA)|| _mesh->status(v1).is_bit_set(AREA)|| _mesh->status(v2).is_bit_set(AREA));
bool h =(_mesh->status(v0).is_bit_set(HANDLEAREA)&&
_mesh->status(v1).is_bit_set(HANDLEAREA)&&
_mesh->status(v2).is_bit_set(HANDLEAREA));
if(!(a || h))
if(_mesh->status(v0).is_bit_set(HANDLEAREA)||
......
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