Applied coding rule related to space and brace 84/65984/1
authorSomin Kim <somin926.kim@samsung.com>
Thu, 14 Apr 2016 09:21:25 +0000 (18:21 +0900)
committerSomin Kim <somin926.kim@samsung.com>
Thu, 14 Apr 2016 09:21:25 +0000 (18:21 +0900)
Change-Id: I0a813cd696bd51102c020e3d9ac01c79dcc55958
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
src/context_history.cpp
src/context_trigger.cpp

index e39e36b163b4209de6c604857627c96a7e90f5c3..4dc4d82d9f6b843631a9106c4a08876ee55361a4 100644 (file)
@@ -46,8 +46,7 @@ typedef struct _context_history_filter_handle_s {
 typedef struct _context_history_list_handle_s {
        ctx::Json jlist;
        int current;
-       _context_history_list_handle_s()
-       {
+       _context_history_list_handle_s() {
                current = 0;
        }
 } _cx_history_list_handle;
@@ -155,7 +154,7 @@ EXTAPI int context_history_get_list(context_history_h handle, context_history_da
        int req_id;
        ctx::Json tmp_list;
        int err = ctx::request_handler::read_sync(data_type_str.c_str(), (filter)? &filter->jfilter : NULL, &req_id, &tmp_list);
-       IF_FAIL_RETURN_TAG(err==ERR_NONE, err, _E, "Getting list failed");
+       IF_FAIL_RETURN_TAG(err == ERR_NONE, err, _E, "Getting list failed");
 
        _J("Read response", tmp_list);
 
index 7af4e3fd3f679f1fcedc5c7c1db39b986a23863b..20a0d9b1a2ac53b0b30bdeafb3f4dcff596d570a 100644 (file)
@@ -47,8 +47,7 @@ typedef struct _context_trigger_rule_s {
        ctx::Json jrule;        // rule_id, description, details(event, condition[])
        ctx::Json jref;
 
-       _context_trigger_rule_s()
-       {
+       _context_trigger_rule_s() {
                jrule = INITIAL_RULE;
                jref = INITIAL_REF;
        }
@@ -59,8 +58,7 @@ typedef struct _context_trigger_rule_entry_s {
        int type;
        ctx::Json jref;
 
-       _context_trigger_rule_entry_s(int t): type(t)
-       {
+       _context_trigger_rule_entry_s(int t): type(t) {
                jentry = INITIAL_ENTRY;
 
                if (t == TYPE_CONDITION) {
@@ -963,7 +961,7 @@ EXTAPI int context_trigger_publish_custom_item(const char* name, const char* fac
 
        // Err: Invalid Json
        ctx::Json jfact = fact;
-       IF_FAIL_RETURN_TAG(jfact.valid(), CONTEXT_TRIGGER_ERROR_INVALID_RULE, _E, "Cannot parse fact Json" );
+       IF_FAIL_RETURN_TAG(jfact.valid(), CONTEXT_TRIGGER_ERROR_INVALID_RULE, _E, "Cannot parse fact Json");
 
        ctx::Json data;
        data.set(NULL, CT_CUSTOM_NAME, name);