From: Somin Kim Date: Thu, 31 Aug 2017 03:42:42 +0000 (+0900) Subject: Fix coding rule X-Git-Tag: accepted/tizen/4.0/unified/20170927.045601^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a85facc4aeec5af936b8d040e0b59dfdcb8f52bb;p=platform%2Fcore%2Fapi%2Fcontext.git Fix coding rule Change-Id: I3000244e51a7a36ba21e75f14337865f74f90c78 Signed-off-by: Somin Kim --- 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; }