Skip to content
Snippets Groups Projects
Commit 6da41d93 authored by Julian Tusch's avatar Julian Tusch :no_entry_sign:
Browse files

replaced use of vector with list, small fixes

parent 831e1461
No related branches found
No related tags found
3 merge requests!460Draft: fluxio/dev-skill-timeout,!449Fluxio preliminary release,!446Draft: Fluxio related changes
......@@ -2,6 +2,7 @@
#include <optional>
#include <string>
#include <list>
#include <IceUtil/UUID.h>
......@@ -696,7 +697,7 @@ namespace armarx::plugins
std::optional<skills::FluxioSkill>
SkillManagerComponentPlugin::getSkill(const std::string& id)
{
auto skillsEntry = fluxioDC.skills.find(id);
const auto& skillsEntry = fluxioDC.skills.find(id);
if (skillsEntry != fluxioDC.skills.end())
{
return skillsEntry->second;
......@@ -721,7 +722,7 @@ namespace armarx::plugins
// oldSkill->native = skill.native; Not changeable
// ---update the parameters lists entirelys
std::vector<std::string> toRemoveIds;
std::list<std::string> toRemoveIds;
// fill the toRemoveIds vector with all old skills parameters
for (const auto& parameter : oldSkill.parameters)
{
......
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