Update clang-format
Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I593ddf950d14009ab77251fd6d3f248214661765
diff --git a/inc/button_factory.hpp b/inc/button_factory.hpp
index 1c513ef..0d427f7 100644
--- a/inc/button_factory.hpp
+++ b/inc/button_factory.hpp
@@ -4,6 +4,7 @@
#include "gpio.hpp"
#include <phosphor-logging/elog-errors.hpp>
+
#include <unordered_map>
using buttonIfCreatorMethod = std::function<std::unique_ptr<ButtonIface>(
@@ -16,7 +17,6 @@
class ButtonFactory
{
-
public:
static ButtonFactory& instance()
{
@@ -35,7 +35,6 @@
template <typename T>
void addToRegistry()
{
-
buttonIfaceRegistry[std::string(T::getFormFactorName())] =
[](sdbusplus::bus::bus& bus, EventPtr& event,
buttonConfig& buttonCfg) {
@@ -52,7 +51,6 @@
EventPtr& event,
buttonConfig& buttonCfg)
{
-
// find matching name in the registry and call factory method.
auto objectIter = buttonIfaceRegistry.find(name);
if (objectIter != buttonIfaceRegistry.end())