Fix Client Context of afb-binder
[apps/agl-service-windowmanager.git] / src / config.cpp
index 53e014d..7b18224 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Mentor Graphics Development (Deutschland) GmbH
+ * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #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