control: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang
format.
Tested: Compiled
Change-Id: Ic9d621d7c5647bde0a92c5f17938c99deeca0512
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/handlers.hpp b/control/handlers.hpp
index d1f6a94..1e82b37 100644
--- a/control/handlers.hpp
+++ b/control/handlers.hpp
@@ -24,14 +24,10 @@
* A lambda function to set/update the zone property
*/
template <typename T>
-auto setZoneProperty(const char* intf,
- const char* prop,
- T (Zone::*func)(T),
- T&& value,
- bool persist)
+auto setZoneProperty(const char* intf, const char* prop, T (Zone::*func)(T),
+ T&& value, bool persist)
{
- return [=, value = std::forward<T>(value)](auto& zone)
- {
+ return [=, value = std::forward<T>(value)](auto& zone) {
(zone.*func)(value);
if (persist)
{
@@ -55,8 +51,7 @@
template <typename T>
auto setProperty()
{
- return [](auto& zone, auto& path, auto& intf, auto& prop, T&& arg)
- {
+ return [](auto& zone, auto& path, auto& intf, auto& prop, T&& arg) {
zone.setPropertyValue(path, intf, prop, std::forward<T>(arg));
};
}
@@ -73,8 +68,7 @@
*/
auto setService(Group&& group)
{
- return [group = std::move(group)](auto& zone, auto& name, bool hasOwner)
- {
+ return [group = std::move(group)](auto& zone, auto& name, bool hasOwner) {
// Update service name owner state list of a group
zone.setServiceOwner(&group, name, hasOwner);
};
@@ -93,10 +87,7 @@
*/
auto removeInterface(const char* path, const char* interface)
{
- return[=](auto& zone)
- {
- zone.removeObjectInterface(path, interface);
- };
+ return [=](auto& zone) { zone.removeObjectInterface(path, interface); };
}
} // namespace handler