PartDesign: apply std::ranges
This commit is contained in:
@@ -317,8 +317,7 @@ void ShapeBinder::slotChangedObject(const App::DocumentObject& Obj, const App::P
|
||||
list = obj->getInListRecursive();
|
||||
chain.insert(chain.end(), list.begin(), list.end());
|
||||
|
||||
auto it = std::find(chain.begin(), chain.end(), &Obj);
|
||||
if (it != chain.end()) {
|
||||
if (const auto it = std::ranges::find(chain, &Obj); it != chain.end()) {
|
||||
if (hasPlacementChanged()) {
|
||||
enforceRecompute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user