PartDesign: apply std::ranges

This commit is contained in:
bofdahof
2025-03-12 20:01:50 +10:00
committed by Chris Hennes
parent 2e2f872da6
commit 965af2bf9a
13 changed files with 60 additions and 71 deletions

View File

@@ -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();
}