From 463106cb5982021bf5ad1e9d66697ea0dbbadbab Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 20 Nov 2016 17:11:32 +0100 Subject: [PATCH] fix coverity issues --- src/Mod/Part/Gui/DlgBooleanOperation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/Gui/DlgBooleanOperation.cpp b/src/Mod/Part/Gui/DlgBooleanOperation.cpp index 0c21f13738..9df2d38994 100644 --- a/src/Mod/Part/Gui/DlgBooleanOperation.cpp +++ b/src/Mod/Part/Gui/DlgBooleanOperation.cpp @@ -194,7 +194,7 @@ bool DlgBooleanOperation::hasSolids(const App::DocumentObject* obj) const if (obj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) { const TopoDS_Shape& shape = static_cast(obj)->Shape.getValue(); TopExp_Explorer anExp (shape, TopAbs_SOLID); - for (; anExp.More(); anExp.Next()) { + if (anExp.More()) { return true; } }