summaryrefslogtreecommitdiffstats
path: root/group.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-11-01 17:03:22 -0700
committerPatrick Venture <venture@google.com>2018-11-01 17:12:54 -0700
commit91ac8d3aade91fb99f496c05114291fcb6bf1856 (patch)
tree1f8e8f82b1d80739a5e5b335587078d8f0e9fcf6 /group.cpp
parent2ff07f3fb6aaa29d7206eff90e2f5610cc859e75 (diff)
downloadphosphor-led-manager-91ac8d3aade91fb99f496c05114291fcb6bf1856.tar.gz
phosphor-led-manager-91ac8d3aade91fb99f496c05114291fcb6bf1856.zip
Add clang-format to repo
Add clang-format to repo. Change-Id: Ib3f81524b66414df3e6c93d8a6df6e22c43841e0 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'group.cpp')
-rw-r--r--group.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/group.cpp b/group.cpp
index 6c0f06a..0d4fa10 100644
--- a/group.cpp
+++ b/group.cpp
@@ -1,5 +1,6 @@
-#include <sdbusplus/message.hpp>
#include "group.hpp"
+
+#include <sdbusplus/message.hpp>
namespace phosphor
{
namespace led
@@ -9,14 +10,13 @@ namespace led
bool Group::asserted(bool value)
{
// Introducing these to enable gtest.
- Manager::group ledsAssert {};
- Manager::group ledsDeAssert {};
+ Manager::group ledsAssert{};
+ Manager::group ledsDeAssert{};
// Group management is handled by Manager. The populated leds* sets are not
// really used by production code. They are there to enable gtest for
// validation.
- auto result = manager.setGroupState(path, value, ledsAssert,
- ledsDeAssert);
+ auto result = manager.setGroupState(path, value, ledsAssert, ledsDeAssert);
// If something does not go right here, then there should be an sdbusplus
// exception thrown.
@@ -24,8 +24,8 @@ bool Group::asserted(bool value)
// Set the base class's asserted to 'true' since the getter
// operation is handled there.
- return sdbusplus::xyz::openbmc_project::Led::server::
- Group::asserted(result);
+ return sdbusplus::xyz::openbmc_project::Led::server::Group::asserted(
+ result);
}
} // namespace led
OpenPOWER on IntegriCloud