FEM: Update multiframe code after review

This commit is contained in:
Stefan Tröger
2025-03-22 09:15:05 +01:00
committed by Benjamin Nauck
parent 713feb5f27
commit b38170cb02
14 changed files with 48 additions and 77 deletions

View File

@@ -142,11 +142,7 @@ FemPostObject* FemPostGroupExtension::getLastPostObject()
bool FemPostGroupExtension::holdsPostObject(FemPostObject* obj)
{
for (const auto& group_obj : Group.getValues()) {
if (group_obj == obj) {
return true;
}
}
return false;
return std::ranges::any_of(Group.getValues(), [obj](const auto& group_obj) {
return group_obj == obj;
});
}