From: INSUN PYO Date: Tue, 12 Sep 2017 01:08:34 +0000 (+0900) Subject: Modification of coding rule violation X-Git-Tag: accepted/tizen/unified/20170912.191910^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F83%2F149183%2F1;p=platform%2Fcore%2Fsystem%2Flibdbuspolicy.git Modification of coding rule violation Signed-off-by: INSUN PYO Change-Id: Id6cafd73c09a8d4c444a04d145da6686ef3ec8ac (cherry picked from commit b7b3a3a5986174a460adc96d6d5f4208c3bde4e2) --- diff --git a/src/internal/naive_policy_checker.cpp b/src/internal/naive_policy_checker.cpp index 0c7cb71..f684ac6 100644 --- a/src/internal/naive_policy_checker.cpp +++ b/src/internal/naive_policy_checker.cpp @@ -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; diff --git a/src/internal/naive_policy_db.cpp b/src/internal/naive_policy_db.cpp index 809d62e..b01f8da 100755 --- a/src/internal/naive_policy_db.cpp +++ b/src/internal/naive_policy_db.cpp @@ -181,7 +181,7 @@ void NaivePolicyDb::PolicyOwn::addItem(ItemOwn* item) { } /*If item is prefix, delete children*/ if(item->isPrefix()){ - for(int i=0; ichildren[i])); } node->__decisionItem = item->getDecision(); diff --git a/src/internal/policy.cpp b/src/internal/policy.cpp index 4a994b3..07caa3a 100755 --- a/src/internal/policy.cpp +++ b/src/internal/policy.cpp @@ -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("<