diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2020-06-04 18:11:30 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2020-06-11 23:46:30 +0300 |
commit | 1214b7e7d921e331fb1480c7e5d579ffa5811cda (patch) | |
tree | c0e38d55a89ab9df8ce112b190926b00c0a71da1 /include/sessions.hpp | |
parent | 29d2a95ba12f8b5abed040df7fd59790d6ba2517 (diff) | |
download | bmcweb-1214b7e7d921e331fb1480c7e5d579ffa5811cda.tar.xz |
clang-format: update to latest from docs repo
This is from openbmc/docs/style/cpp/.clang-format
Other OpenBMC repos are doing the same.
Tested: Built and validator passed.
Change-Id: Ief26c755c9ce012823e16a506342b0547a53517a
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'include/sessions.hpp')
-rw-r--r-- | include/sessions.hpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/sessions.hpp b/include/sessions.hpp index a7ffe28921..1176cfca47 100644 --- a/include/sessions.hpp +++ b/include/sessions.hpp @@ -1,20 +1,21 @@ #pragma once +#include "logging.h" +#include "utility.h" + #include <openssl/rand.h> #include <boost/container/flat_map.hpp> #include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid_generators.hpp> #include <boost/uuid/uuid_io.hpp> -#include <csignal> #include <dbus_singleton.hpp> #include <nlohmann/json.hpp> #include <pam_authenticate.hpp> -#include <random> #include <sdbusplus/bus/match.hpp> -#include "logging.h" -#include "utility.h" +#include <csignal> +#include <random> #ifdef BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE #include <ibm/locks.hpp> #endif @@ -366,8 +367,7 @@ class SessionStore private: SessionStore() : timeoutInMinutes(60) - { - } + {} void applySessionTimeouts() { @@ -431,7 +431,8 @@ struct adl_serializer<std::shared_ptr<crow::persistent_data::UserSession>> } }; -template <> struct adl_serializer<crow::persistent_data::AuthConfigMethods> +template <> +struct adl_serializer<crow::persistent_data::AuthConfigMethods> { static void to_json(nlohmann::json& j, const crow::persistent_data::AuthConfigMethods& c) |