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

@@ -374,9 +374,9 @@ float InspectNominalFastMesh::getDistance(const Base::Vector3f& point) const
unsigned long ulX, ulY, ulZ;
_pGrid->Position(point, ulX, ulY, ulZ);
unsigned long ulLevel = 0;
while (indices.size() == 0 && ulLevel <= max_level)
while (indices.empty() && ulLevel <= max_level)
_pGrid->GetHull(ulX, ulY, ulZ, ulLevel++, indices);
if (indices.size() == 0 || ulLevel==1)
if (indices.empty() || ulLevel==1)
_pGrid->GetHull(ulX, ulY, ulZ, ulLevel, indices);
#endif