refactoring: making bus type a type - part 2 98/199798/1
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 14 Feb 2019 13:54:32 +0000 (14:54 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Thu, 14 Feb 2019 13:54:32 +0000 (14:54 +0100)
This makes bus type a type in one more function in addition to commit 7b3249.

Change-Id: I22a119ffc09b3e111e6409006baba1a05d857a50

src/internal/naive_policy_checker.cpp
src/internal/naive_policy_checker.hpp

index d94925f..f35bd11 100644 (file)
@@ -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];
 }
 
index ea8898d..b9da290 100644 (file)
@@ -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.