Fix static analysis issue 65/314965/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 24 Jul 2024 01:54:08 +0000 (10:54 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 24 Jul 2024 01:56:21 +0000 (10:56 +0900)
- Use std::move()

Change-Id: I7cf33a11bdcf764d6a89ca8529987088140514c1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
modules/badge/badge_service.cc

index b24803e..9cb662a 100644 (file)
@@ -106,7 +106,7 @@ void BadgeService::OnTerminate() {
 bool BadgeService::IsExist(const tizen_base::Database& db, std::string appid) {
   auto q = tizen_base::Database::Sql("SELECT count(*) FROM badge_data "
       "WHERE pkgname = ?")
-      .Bind(appid);
+      .Bind(std::move(appid));
   auto r = db.Exec(q);
   if (!r)
     return false;