summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--discover_system_state.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/discover_system_state.cpp b/discover_system_state.cpp
index dfbf876..5ce94b4 100644
--- a/discover_system_state.cpp
+++ b/discover_system_state.cpp
@@ -89,8 +89,9 @@ std::string getProperty(sdbusplus::bus::bus& bus, std::string path,
return sdbusplus::message::variant_ns::get<std::string>(property);
}
-void setProperty(sdbusplus::bus::bus& bus, std::string path,
- std::string interface, std::string property, std::string value)
+void setProperty(sdbusplus::bus::bus& bus, const std::string& path,
+ const std::string& interface, const std::string& property,
+ const std::string& value)
{
sdbusplus::message::variant<std::string> variantValue = value;
std::string service = getService(bus, path, interface);
OpenPOWER on IntegriCloud