Import: apply std::ranges

This commit is contained in:
bofdahof
2025-03-16 17:16:42 -05:00
committed by Chris Hennes
parent 4dd92724b6
commit 49cc124a68
2 changed files with 2 additions and 3 deletions
+1 -2
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;
}
+1 -1
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());
}