fix some occurrences where size() is misused as Boolean

- as suggested by @wwmayer: 4d51d1d0b1 (r69648152)
This commit is contained in:
Uwe
2022-03-27 21:38:15 +02:00
parent 14960411a8
commit 66e4c37a25
6 changed files with 14 additions and 13 deletions

View File

@@ -430,7 +430,7 @@ void ViewProviderFemPostObject::WritePointData(vtkPoints* points, vtkDataArray*
// we must inherit the Scale of parent meshes (for example for clip filters)
auto parents = pcObject->getInList();
if (parents.size()) {
if (!parents.empty()) {
for (auto itParents = parents.begin(); itParents != parents.end(); ++itParents) {
if ((*itParents)->getTypeId() == Base::Type::fromName("Fem::FemPostPipeline")) {
auto vpObject = dynamic_cast<FemGui::ViewProviderFemPostObject*>(