From a85facc4aeec5af936b8d040e0b59dfdcb8f52bb Mon Sep 17 00:00:00 2001 From: Somin Kim Date: Thu, 31 Aug 2017 12:42:42 +0900 Subject: [PATCH] Fix coding rule Change-Id: I3000244e51a7a36ba21e75f14337865f74f90c78 Signed-off-by: Somin Kim --- src/trigger/ContextItem.cpp | 4 ++-- src/trigger/CustomTemplate.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/trigger/ContextItem.cpp b/src/trigger/ContextItem.cpp index ee43604..7943d4a 100644 --- a/src/trigger/ContextItem.cpp +++ b/src/trigger/ContextItem.cpp @@ -135,9 +135,9 @@ bool ContextItem::isValidData(const char* attribute, const char* value) { URI(TIME), NAME(DAY_OF_WEEK), {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Weekday", "Weekend"} }, { URI(BATTERY), NAME(LEVEL), {"Empty", "Critical", "Low", "Normal", "High", "Full"} }, { URI(GEOFENCE), NAME(EVENT), {"In", "Out"} }, - { URI(GPS), NAME(STATE), {"Disabled","Searching","Connected"} }, + { URI(GPS), NAME(STATE), {"Disabled", "Searching", "Connected"} }, { URI(EARJACK), NAME(TYPE), {"Normal", "Headset", "Bluetooth"} }, - { URI(WIFI), NAME(STATE), {"Disabled","Unconnected","Connected"} }, + { URI(WIFI), NAME(STATE), {"Disabled", "Unconnected", "Connected"} }, { URI(WIFI), NAME(BSSID), {} }, { URI(STATIONARY), NAME(EVENT), {"Detected"} }, { URI(WALKING), NAME(EVENT), {"Detected"} }, diff --git a/src/trigger/CustomTemplate.cpp b/src/trigger/CustomTemplate.cpp index 4741fb5..2c18d79 100644 --- a/src/trigger/CustomTemplate.cpp +++ b/src/trigger/CustomTemplate.cpp @@ -211,9 +211,9 @@ int CustomTemplate::add(const std::string& name, const std::string& attrTmpl) // Error: already exist CustomTemplate* tmpl = get(name); if (tmpl) { - if (tmplJson == tmpl->__templateJson) + if (tmplJson == tmpl->__templateJson) { return CONTEXT_TRIGGER_ERROR_NONE; - else { + } else { _E("Template already exists"); return CONTEXT_TRIGGER_ERROR_DATA_EXIST; } -- 2.7.4