used in-built methods instead of external algoritms

This commit is contained in:
asapelkin
2019-10-27 00:46:59 +03:00
committed by wmayer
parent 55e758c2f9
commit 7b8f473cc9
2 changed files with 2 additions and 2 deletions

View File

@@ -394,7 +394,7 @@ void CmdPartDesignMigrate::activated(int iMsg)
// we are basing on some partdesign feature which supposed to belong to some body
PartDesign::Feature *baseFeat = static_cast <PartDesign::Feature *>( base );
auto baseFeatSetIt = find ( migrateFeatures.begin (), migrateFeatures.end (), baseFeat );
auto baseFeatSetIt = migrateFeatures.find(baseFeat);
if ( baseFeatSetIt != migrateFeatures.end() ) {
// base feature is pending for migration, switch to it and continue over

View File

@@ -4060,7 +4060,7 @@ SolverReportingManager::Manager().LogToFile("GCS::System::diagnose()\n");
// If not independent, must be dependent
for(int j=0; j < paramsNum; j++) {
auto result = std::find(indepParamCols.begin(), indepParamCols.end(), j);
auto result = indepParamCols.find(j);
if(result == indepParamCols.end()) {
depParamCols.insert(j);
}