FIX: Changed to const reference

This commit is contained in:
Henry Winkel
2024-03-14 17:43:56 +01:00
parent b645005aeb
commit ada77d0e45
2 changed files with 6 additions and 6 deletions

View File

@@ -153,7 +153,7 @@ namespace kubecontrol
}
void KubePod::setArgs(std::string &args)
void KubePod::setArgs(const std::string &args)
{
Args_.emplace_back(Utils::to_lower(args));
}
@@ -163,7 +163,7 @@ namespace kubecontrol
return Args_;
}
void KubePod::setCommand(std::string &command)
void KubePod::setCommand(const std::string &command)
{
PodCommand_ = Utils::to_lower(command);
}
@@ -173,7 +173,7 @@ namespace kubecontrol
return PodCommand_;
}
void KubePod::setComponent(std::string &component)
void KubePod::setComponent(const std::string &component)
{
this->Component_ = Utils::to_lower(component);
}