Gui: apply std::ranges
This commit is contained in:
@@ -88,7 +88,7 @@ bool ViewProviderGroupExtension::extensionCanDropObject(App::DocumentObject* obj
|
||||
|
||||
// Check for possible cyclic dependencies if we allowed to drop the object
|
||||
const auto& list = obj->getOutList();
|
||||
if (std::find(list.begin(), list.end(), extobj) != list.end()) {
|
||||
if (std::ranges::find(list, extobj) != list.end()) {
|
||||
Base::Console().Warning("Do not add cyclic dependency to %s\n", extobj->Label.getValue());
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user