From dfe4aee045113eceaeabd327291f94583e7b13d3 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Wed, 30 May 2018 19:06:32 +0900 Subject: Format source codes Change-Id: I28e99487b814b23fe99aa6bc8ec4538af3940acf Signed-off-by: Kazumasa Mitsunari --- src/config.hpp | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'src/config.hpp') diff --git a/src/config.hpp b/src/config.hpp index 8588d65..43fb67e 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -20,30 +20,34 @@ #include #include -namespace wm { +namespace wm +{ -using std::experimental::optional; using std::experimental::nullopt; +using std::experimental::optional; -struct config { - typedef std::map map; +struct config +{ + typedef std::map map; - map cfg; + map cfg; - config(); + config(); - optional get_string(char const *s) { - auto i = this->cfg.find(s); - return i != this->cfg.end() ? optional(i->second) : nullopt; - } + optional get_string(char const *s) + { + auto i = this->cfg.find(s); + return i != this->cfg.end() ? optional(i->second) : nullopt; + } - optional get_int(char const *s) { - auto i = this->cfg.find(s); - return i != this->cfg.end() ? optional(std::stoi(i->second)) - : nullopt; - } + optional get_int(char const *s) + { + auto i = this->cfg.find(s); + return i != this->cfg.end() ? optional(std::stoi(i->second)) + : nullopt; + } }; -} // namespace wm +} // namespace wm -#endif // TMCAGLWM_CONFIG_HPP +#endif // TMCAGLWM_CONFIG_HPP -- cgit 1.2.3-korg