control: Group configuration inputs should be const
Change-Id: I8cb9347b2a1cb968d8175970db5a97eb6395b500
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/group.hpp b/control/json/group.hpp
index 8e931e5..dd5c6a0 100644
--- a/control/json/group.hpp
+++ b/control/json/group.hpp
@@ -89,7 +89,7 @@
/**
* @brief Set the dbus interface name for the group
*/
- inline void setInterface(std::string& intf)
+ inline void setInterface(const std::string& intf)
{
_interface = intf;
}
@@ -105,7 +105,7 @@
/**
* @brief Set the dbus property name for the group
*/
- inline void setProperty(std::string& prop)
+ inline void setProperty(const std::string& prop)
{
_property = prop;
}
@@ -121,7 +121,7 @@
/**
* @brief Set the dbus property's data type for the group
*/
- inline void setType(std::optional<std::string>& type)
+ inline void setType(const std::optional<std::string>& type)
{
_type = type;
}
@@ -137,7 +137,7 @@
/**
* @brief Set the dbus property's expected value for the group
*/
- inline void setValue(std::optional<PropertyVariantType>& value)
+ inline void setValue(const std::optional<PropertyVariantType>& value)
{
_value = value;
}