App: apply std::ranges
This commit is contained in:
@@ -268,7 +268,7 @@ bool GroupExtension::recursiveHasObject(const DocumentObject* obj,
|
||||
|
||||
auto ext = child->getExtensionByType<GroupExtension>();
|
||||
|
||||
if (std::find(history.begin(), history.end(), ext) != history.end()) {
|
||||
if (std::ranges::find(history, ext) != history.end()) {
|
||||
throw Base::RuntimeError(
|
||||
"Cyclic dependencies detected: Search cannot be performed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user