From 7b8f473cc97ad41ebeeaf8fa686e8978e66a9a9b Mon Sep 17 00:00:00 2001 From: asapelkin Date: Sun, 27 Oct 2019 00:46:59 +0300 Subject: [PATCH] used in-built methods instead of external algoritms --- src/Mod/PartDesign/Gui/CommandBody.cpp | 2 +- src/Mod/Sketcher/App/planegcs/GCS.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/PartDesign/Gui/CommandBody.cpp b/src/Mod/PartDesign/Gui/CommandBody.cpp index 6b82f309f8..aa0e0452d3 100644 --- a/src/Mod/PartDesign/Gui/CommandBody.cpp +++ b/src/Mod/PartDesign/Gui/CommandBody.cpp @@ -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 ( 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 diff --git a/src/Mod/Sketcher/App/planegcs/GCS.cpp b/src/Mod/Sketcher/App/planegcs/GCS.cpp index dbf52d06a7..525d7cdd1c 100644 --- a/src/Mod/Sketcher/App/planegcs/GCS.cpp +++ b/src/Mod/Sketcher/App/planegcs/GCS.cpp @@ -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); }