From 5d27a49d87674190ced930106e16c99feb67e24c Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 20 Nov 2016 17:16:33 +0100 Subject: [PATCH] fix coverity issues --- src/Mod/PartDesign/App/Feature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/App/Feature.cpp b/src/Mod/PartDesign/App/Feature.cpp index cb9a4e049..df21cd9df 100644 --- a/src/Mod/PartDesign/App/Feature.cpp +++ b/src/Mod/PartDesign/App/Feature.cpp @@ -68,7 +68,7 @@ TopoDS_Shape Feature::getSolid(const TopoDS_Shape& shape) Standard_Failure::Raise("Shape is null"); TopExp_Explorer xp; xp.Init(shape,TopAbs_SOLID); - for (;xp.More(); xp.Next()) { + if (xp.More()) { return xp.Current(); }