Refactor pkgmgr-info
[platform/core/appfw/pkgmgr-info.git] / src / server / database / cert_set_db_handler.cc
index 97babdf..bd0144c 100644 (file)
@@ -46,9 +46,9 @@ int CertSetDBHandler::Execute() {
 
   if (!is_offline_)
     DBHandleProvider::GetInst(uid_).SetMemoryMode(GetPID());
-  sqlite3* conn = GetConnection().front().first;
+  const auto& db = GetConnection().front().first;
 
-  return certinfo_internal_set(conn, handle_->pkgid, handle_, uid_);
+  return internal::CertInfoSet(db, handle_->pkgid, handle_, uid_);
 }
 
 }  // namespace database