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;
}

View File

@@ -535,7 +535,7 @@ private:
"User parameter:BaseApp/Preferences/Mod/Part/STEP");
std::string scheme = hGrp->GetASCII("Scheme", Part::Interface::writeStepScheme());
std::list<std::string> supported = Part::supportedSTEPSchemes();
if (std::find(supported.begin(), supported.end(), scheme) != supported.end()) {
if (std::ranges::find(supported, scheme) != supported.end()) {
Part::Interface::writeStepScheme(scheme.c_str());
}