fix coverity issues

This commit is contained in:
wmayer 2016-11-20 17:16:33 +01:00
parent 463106cb59
commit 5d27a49d87

View File

@ -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();
}