From ada77d0e4595f7a8b64e0afc92633c18d33223cf Mon Sep 17 00:00:00 2001 From: Henry Winkel Date: Thu, 14 Mar 2024 17:43:56 +0100 Subject: [PATCH] FIX: Changed to const reference --- include/kubecontrol/KubePod.hpp | 6 +++--- src/kubecontrol/KubePod.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/kubecontrol/KubePod.hpp b/include/kubecontrol/KubePod.hpp index caffe49..1fbdbaa 100644 --- a/include/kubecontrol/KubePod.hpp +++ b/include/kubecontrol/KubePod.hpp @@ -107,7 +107,7 @@ namespace kubecontrol * * @param args */ - void setArgs(std::string &args); + void setArgs(const std::string &args); /** * @brief Get the Args @@ -121,7 +121,7 @@ namespace kubecontrol * * @param command */ - void setCommand(std::string &command); + void setCommand(const std::string &command); /** * @brief Get the Command @@ -135,7 +135,7 @@ namespace kubecontrol * * @param component */ - void setComponent(std::string &component); + void setComponent(const std::string &component); /** * @brief Get the Component var diff --git a/src/kubecontrol/KubePod.cpp b/src/kubecontrol/KubePod.cpp index 896d54b..0126ead 100644 --- a/src/kubecontrol/KubePod.cpp +++ b/src/kubecontrol/KubePod.cpp @@ -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); }