diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-30 19:06:32 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-30 19:06:32 +0900 |
commit | dfe4aee045113eceaeabd327291f94583e7b13d3 (patch) | |
tree | 745826e7154c4d08606456dcef68716e64c70b81 /src/config.cpp | |
parent | 5d91a5ffe0bc614ee79a18818dadf5836ce038d7 (diff) |
Format source codes
Change-Id: I28e99487b814b23fe99aa6bc8ec4538af3940acf
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/config.cpp b/src/config.cpp index c7e4ddb..7b18224 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -17,18 +17,22 @@ #include "config.hpp" #include "hmi-debug.h" -namespace wm { +namespace wm +{ -config::config() : cfg() { - // Supply default values for these... - char const *path_layers_json = getenv("AFM_APP_INSTALL_DIR"); +config::config() : cfg() +{ + // Supply default values for these... + char const *path_layers_json = getenv("AFM_APP_INSTALL_DIR"); - if (!path_layers_json) { - HMI_ERROR("wm", "AFM_APP_INSTALL_DIR is not defined"); - } - else { - this->cfg["layers.json"] = std::string(path_layers_json) + std::string("/etc/layers.json"); - } + if (!path_layers_json) + { + HMI_ERROR("wm", "AFM_APP_INSTALL_DIR is not defined"); + } + else + { + this->cfg["layers.json"] = std::string(path_layers_json) + std::string("/etc/layers.json"); + } } -} // namespace wm +} // namespace wm |