Modification of coding rule violation 83/149183/1 accepted/tizen/unified/20170912.191910 submit/tizen/20170912.020543
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 12 Sep 2017 01:08:34 +0000 (10:08 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Tue, 12 Sep 2017 01:15:51 +0000 (01:15 +0000)
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Id6cafd73c09a8d4c444a04d145da6686ef3ec8ac
(cherry picked from commit b7b3a3a5986174a460adc96d6d5f4208c3bde4e2)

src/internal/naive_policy_checker.cpp
src/internal/naive_policy_db.cpp
src/internal/policy.cpp
src/test_runner.h

index 0c7cb71..f684ac6 100644 (file)
@@ -137,7 +137,7 @@ Decision NaivePolicyChecker::checkPolicyOwn(const NaivePolicyDb::PolicyOwn& poli
                if (node->children[childIndex] == NULL) {
                        if(ret != Decision::ANY)
                                return ret;
-                       else if(policy.getTreeRoot()->__is_prefix)
+                       else if (policy.getTreeRoot()->__is_prefix)
                                return policy.getTreeRoot()->__decisionItem.getDecision();
                        else
                                return Decision::ANY;
index 809d62e..b01f8da 100755 (executable)
@@ -181,7 +181,7 @@ void NaivePolicyDb::PolicyOwn::addItem(ItemOwn* item) {
        }
        /*If item is prefix, delete children*/
        if(item->isPrefix()){
-               for(int i=0; i<MAX_CHILDREN; i++)
+               for(int i = 0; i < MAX_CHILDREN; i++)
                        nodeRemove(&(node->children[i]));
        }
        node->__decisionItem = item->getDecision();
index 4a994b3..07caa3a 100755 (executable)
@@ -281,7 +281,7 @@ bool MatchItemSR::addNames(const char* name) {
                        int len;
                        j = i;
                        if (tslog::verbose() && !((name[i] >= 'a'&& name[i] <= 'z') || (name[i] >= 'A'&& name[i] <= 'Z') || (name[i] >= '0'&& name[i] <= '9') || name[i] == ' ')) {
-                               std::cout<<"Wrong name("<<i<<"): "<<name<<std::endl;
+                               std::cout << "Wrong name("<< i <<"): " << name << std::endl;
                        }
                        while ((c = name[i++]) && ' ' != c);
                        if (!c) {
index 3c79a99..d297238 100644 (file)
@@ -56,8 +56,8 @@ struct binary {
        struct test_case* test_cases;
        int timeout;
 
-       char** (*prepare_args) (const struct binary* b, const char* test_name);
-       void (*parse) (const struct binary* b, const char* test_name, char* buffer, int state_change, int state_option);
+       char** (*prepare_args)(const struct binary* b, const char* test_name);
+       void (*parse)(const struct binary* b, const char* test_name, char* buffer, int state_change, int state_option);
        int (*init)(void);
        int (*clean)(void);
 };