Skip to content
Snippets Groups Projects
Verified Commit d6b7e61a authored by Christian Dreher's avatar Christian Dreher
Browse files

fix: Avoid using std::contains

parent 4945e5d3
No related branches found
No related tags found
No related merge requests found
Pipeline #22607 failed
......@@ -245,7 +245,8 @@ namespace armarx::skills::gui
std::vector<Parameters> SkillManagerWrapper::getParameterHistoryForSkill(const skills::SkillID& sid)
{
if (not this->skillParameterExecutionHistory.contains(sid))
if (this->skillParameterExecutionHistory.find(sid) ==
this->skillParameterExecutionHistory.end())
{
return {};
}
......@@ -254,7 +255,8 @@ namespace armarx::skills::gui
void SkillManagerWrapper::addParametersToHistory(const skills::SkillID& sid, const Parameters& params)
{
if (not this->skillParameterExecutionHistory.contains(sid))
if (this->skillParameterExecutionHistory.find(sid) ==
this->skillParameterExecutionHistory.end())
{
// no history exists for this skill. Assign new
this->skillParameterExecutionHistory.insert({sid, {params}});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment