FIX: Changed to const reference
This commit is contained in:
@@ -107,7 +107,7 @@ namespace kubecontrol
|
|||||||
*
|
*
|
||||||
* @param args
|
* @param args
|
||||||
*/
|
*/
|
||||||
void setArgs(std::string &args);
|
void setArgs(const std::string &args);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the Args
|
* @brief Get the Args
|
||||||
@@ -121,7 +121,7 @@ namespace kubecontrol
|
|||||||
*
|
*
|
||||||
* @param command
|
* @param command
|
||||||
*/
|
*/
|
||||||
void setCommand(std::string &command);
|
void setCommand(const std::string &command);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the Command
|
* @brief Get the Command
|
||||||
@@ -135,7 +135,7 @@ namespace kubecontrol
|
|||||||
*
|
*
|
||||||
* @param component
|
* @param component
|
||||||
*/
|
*/
|
||||||
void setComponent(std::string &component);
|
void setComponent(const std::string &component);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the Component var
|
* @brief Get the Component var
|
||||||
|
|||||||
@@ -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));
|
Args_.emplace_back(Utils::to_lower(args));
|
||||||
}
|
}
|
||||||
@@ -163,7 +163,7 @@ namespace kubecontrol
|
|||||||
return Args_;
|
return Args_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void KubePod::setCommand(std::string &command)
|
void KubePod::setCommand(const std::string &command)
|
||||||
{
|
{
|
||||||
PodCommand_ = Utils::to_lower(command);
|
PodCommand_ = Utils::to_lower(command);
|
||||||
}
|
}
|
||||||
@@ -173,7 +173,7 @@ namespace kubecontrol
|
|||||||
return PodCommand_;
|
return PodCommand_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void KubePod::setComponent(std::string &component)
|
void KubePod::setComponent(const std::string &component)
|
||||||
{
|
{
|
||||||
this->Component_ = Utils::to_lower(component);
|
this->Component_ = Utils::to_lower(component);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user