PrivilegeDb: drop TPrivilegesList typedef 79/23679/3
authorRafal Krypa <r.krypa@samsung.com>
Tue, 1 Jul 2014 09:54:29 +0000 (11:54 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Tue, 1 Jul 2014 13:00:49 +0000 (15:00 +0200)
The typedef cluttered the code without adding any significant value.

Change-Id: I7dacf9c7b46e68087a248acd907e208e6aa76c52
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/server/db/include/privilege_db.h
src/server/db/privilege_db.cpp

index 941380f..4b7aa25 100644 (file)
@@ -40,8 +40,6 @@
 
 namespace SecurityManager {
 
-typedef std::vector<std::string> 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 &currentPrivilege);
+            std::vector<std::string> &currentPrivilege);
 
     /**
      * 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<std::string> &privileges);
 
 };
 
index 0b9335d..d0dcd6f 100644 (file)
@@ -158,7 +158,7 @@ void PrivilegeDb::RemoveApplication(const std::string &appId,
 }
 
 void PrivilegeDb::GetPkgPrivileges(const std::string &pkgId,
-        TPrivilegesList &currentPrivileges)
+        std::vector<std::string> &currentPrivileges)
 {
     try_catch<void>([&] {
         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<std::string> &privileges)
 {
     try_catch<void>([&] {
         DB::SqlConnection::DataCommandAutoPtr command =