App: use contains() instead of count() where possible
This commit is contained in:
@@ -134,7 +134,7 @@ Base::Placement GeoFeatureGroupExtension::recursiveGroupPlacement(
|
||||
auto parent = link->getExtensionByType<GeoFeatureGroupExtension>(true);
|
||||
if (parent && parent->hasObject(group->getExtendedObject())) {
|
||||
// Cyclic dependencies detected
|
||||
if (history.count(parent) > 0) {
|
||||
if (history.contains(parent)) {
|
||||
break;
|
||||
}
|
||||
return recursiveGroupPlacement(parent, history) * group->placement().getValue();
|
||||
|
||||
Reference in New Issue
Block a user