Mod: use empty

This commit is contained in:
berniev
2022-08-06 02:29:31 +10:00
committed by wwmayer
parent 22dcf5866f
commit 53ba98d636
134 changed files with 419 additions and 419 deletions

View File

@@ -622,7 +622,7 @@ TopoDS_Face FaceTypedCylinder::buildFace(const FaceVectorType &faces) const
static TopoDS_Face dummy;
std::vector<EdgeVectorType> boundaries;
boundarySplit(faces, boundaries);
if (boundaries.size() < 1)
if (boundaries.empty())
return dummy;
//make wires
@@ -638,7 +638,7 @@ TopoDS_Face FaceTypedCylinder::buildFace(const FaceVectorType &faces) const
return dummy;
allWires.push_back(wireMaker.Wire());
}
if (allWires.size() < 1)
if (allWires.empty())
return dummy;
// Sort wires by size, that is, the innermost wire comes last
@@ -1089,7 +1089,7 @@ bool FaceUniter::process()
}
}
}
if (facesToSew.size() > 0)
if (!facesToSew.empty())
{
modifiedSignal = true;
workShell = ModelRefine::removeFaces(workShell, facesToRemove);