From: Adrian Szyndela Date: Thu, 14 Feb 2019 13:54:32 +0000 (+0100) Subject: refactoring: making bus type a type - part 2 X-Git-Tag: accepted/tizen/unified/20190322.075526~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F98%2F199798%2F1;p=platform%2Fcore%2Fsystem%2Flibdbuspolicy.git refactoring: making bus type a type - part 2 This makes bus type a type in one more function in addition to commit 7b3249. Change-Id: I22a119ffc09b3e111e6409006baba1a05d857a50 --- diff --git a/src/internal/naive_policy_checker.cpp b/src/internal/naive_policy_checker.cpp index d94925f..f35bd11 100644 --- a/src/internal/naive_policy_checker.cpp +++ b/src/internal/naive_policy_checker.cpp @@ -11,7 +11,7 @@ using namespace ldp_xml_parser; DEF_NODESTRUCT_GLOBAL(ldp_xml_parser::NaivePolicyChecker, policy_checker) -NaivePolicyDb& NaivePolicyChecker::getPolicyDb(bool type) { +NaivePolicyDb& NaivePolicyChecker::getPolicyDb(BusType type) { return m_bus_db[type]; } diff --git a/src/internal/naive_policy_checker.hpp b/src/internal/naive_policy_checker.hpp index ea8898d..b9da290 100644 --- a/src/internal/naive_policy_checker.hpp +++ b/src/internal/naive_policy_checker.hpp @@ -83,7 +83,7 @@ namespace ldp_xml_parser * \param[in] type Type of database (system/session bus) * \return Returns reference to chosen bus policy db */ - NaivePolicyDb& getPolicyDb(bool type); + NaivePolicyDb& getPolicyDb(BusType type); /** Clears all db data, useful for reloading configuration * during testing.