Import: apply std::ranges

This commit is contained in:
bofdahof
2025-03-12 17:48:21 +10:00
committed by Chris Hennes
parent 4dd92724b6
commit 49cc124a68
2 changed files with 2 additions and 3 deletions

View File

@@ -100,8 +100,7 @@ std::vector<App::DocumentObject*> ExportOCAF::filterPart(App::Part* part) const
std::vector<App::DocumentObject*> inList = it->getInList();
bool accept = true;
for (auto jt : inList) {
auto kt = std::find(filterType.begin(), filterType.end(), jt);
if (kt != filterType.end()) {
if (auto kt = std::ranges::find(filterType, jt); kt != filterType.end()) {
accept = false;
break;
}