From: Hwankyu Jhun Date: Wed, 24 Jul 2024 01:54:08 +0000 (+0900) Subject: Fix static analysis issue X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4f9e2c1dc34d34fcb19fede4a5c8a380a722577;p=platform%2Fcore%2Fappfw%2Fbadge.git Fix static analysis issue - Use std::move() Change-Id: I7cf33a11bdcf764d6a89ca8529987088140514c1 Signed-off-by: Hwankyu Jhun --- diff --git a/modules/badge/badge_service.cc b/modules/badge/badge_service.cc index b24803e..9cb662a 100644 --- a/modules/badge/badge_service.cc +++ b/modules/badge/badge_service.cc @@ -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;