TechDraw: apply std::ranges

This commit is contained in:
bofdahof
2025-03-12 20:03:39 +10:00
committed by Chris Hennes
parent 34881bc82e
commit 20141d7f19
5 changed files with 9 additions and 11 deletions

View File

@@ -990,7 +990,7 @@ std::vector<T> QGIView::getObjects(std::vector<int> indexes)
T object = static_cast<T>(child);
int target = object->getProjIndex();
// If child item's index in indexes, then add to results
if (std::find(indexes.begin(), indexes.end(), target) != indexes.end()) {
if (std::ranges::find(indexes, target) != indexes.end()) {
result.push_back(object);
}
}