projects
/
platform
/
core
/
appfw
/
badge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ac784c
)
Fix static analysis issue
65/314965/1
author
Hwankyu Jhun
<h.jhun@samsung.com>
Wed, 24 Jul 2024 01:54:08 +0000
(10:54 +0900)
committer
Hwankyu 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
patch
|
blob
|
history
diff --git
a/modules/badge/badge_service.cc
b/modules/badge/badge_service.cc
index
b24803e
..
9cb662a
100644
(file)
--- 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;