From: Rafal Krypa Date: Tue, 1 Jul 2014 09:54:29 +0000 (+0200) Subject: PrivilegeDb: drop TPrivilegesList typedef X-Git-Tag: accepted/tizen/ivi/20140807.055102~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c963db9bce18e90eaebab6cd5392b97618980dcc;p=platform%2Fcore%2Fsecurity%2Fsecurity-manager.git PrivilegeDb: drop TPrivilegesList typedef The typedef cluttered the code without adding any significant value. Change-Id: I7dacf9c7b46e68087a248acd907e208e6aa76c52 Signed-off-by: Rafal Krypa --- diff --git a/src/server/db/include/privilege_db.h b/src/server/db/include/privilege_db.h index 941380f..4b7aa25 100644 --- a/src/server/db/include/privilege_db.h +++ b/src/server/db/include/privilege_db.h @@ -40,8 +40,6 @@ namespace SecurityManager { -typedef std::vector TPrivilegesList; - enum class QueryType { EGetPkgPrivileges, EAddApplication, @@ -123,7 +121,7 @@ public: * @exception DB::SqlConnection::Exception::InternalError on internal error */ void GetPkgPrivileges(const std::string &pkgId, - TPrivilegesList ¤tPrivilege); + std::vector ¤tPrivilege); /** * Add an application into the database @@ -164,7 +162,7 @@ public: * @exception DB::SqlConnection::Exception::InternalError on internal error */ void UpdateAppPrivileges(const std::string &appId, - const TPrivilegesList &privileges); + const std::vector &privileges); }; diff --git a/src/server/db/privilege_db.cpp b/src/server/db/privilege_db.cpp index 0b9335d..d0dcd6f 100644 --- a/src/server/db/privilege_db.cpp +++ b/src/server/db/privilege_db.cpp @@ -158,7 +158,7 @@ void PrivilegeDb::RemoveApplication(const std::string &appId, } void PrivilegeDb::GetPkgPrivileges(const std::string &pkgId, - TPrivilegesList ¤tPrivileges) + std::vector ¤tPrivileges) { try_catch([&] { DB::SqlConnection::DataCommandAutoPtr command = @@ -186,7 +186,7 @@ void PrivilegeDb::RemoveAppPrivileges(const std::string &appId) } void PrivilegeDb::UpdateAppPrivileges(const std::string &appId, - const TPrivilegesList &privileges) + const std::vector &privileges) { try_catch([&] { DB::SqlConnection::DataCommandAutoPtr command =