From 815838de3a66b3cda1ae4c7ea67ea9c5d745a9fe Mon Sep 17 00:00:00 2001 From: Mu-Woong Lee Date: Thu, 18 Feb 2016 21:14:47 +0900 Subject: [PATCH] Replace namespace ctx::shared with class ctx::SharedVars Change-Id: I2ec7511ddaa05eea4ff0a885a8a069d6701f2c7e Signed-off-by: Mu-Woong Lee --- src/device/system/wifi.cpp | 6 +++--- src/statistics/shared/system_info.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/device/system/wifi.cpp b/src/device/system/wifi.cpp index fde2d8c..3680768 100644 --- a/src/device/system/wifi.cpp +++ b/src/device/system/wifi.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include #include #include "system_types.h" #include "wifi.h" @@ -122,7 +122,7 @@ bool ctx::device_status_wifi::get_bssid() if (bssid.empty()) _W("Failed to get BSSID"); - ctx::shared::wifi_bssid = bssid; + SharedVars().set(ctx::SharedVars::WIFI_BSSID, bssid); _D("BSSID: %s", bssid.c_str()); return !bssid.empty(); @@ -131,7 +131,7 @@ bool ctx::device_status_wifi::get_bssid() void ctx::device_status_wifi::clear_bssid() { bssid.clear(); - ctx::shared::wifi_bssid.clear(); + SharedVars().clear(ctx::SharedVars::WIFI_BSSID); _D("No WiFi connection"); } diff --git a/src/statistics/shared/system_info.cpp b/src/statistics/shared/system_info.cpp index 548e328..3437d69 100644 --- a/src/statistics/shared/system_info.cpp +++ b/src/statistics/shared/system_info.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include "system_info.h" #define CONNECTED 1 @@ -75,6 +75,6 @@ bool ctx::system_info::get_wifi_bssid(std::string& bssid) return !bssid.empty(); #endif - bssid = ctx::shared::wifi_bssid; + bssid = ctx::SharedVars().get(ctx::SharedVars::WIFI_BSSID); return true; } -- 2.7.4