Code Review
/
apps
/
agl-service-homescreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
src/homescreen, hs-client, hs-proxy: Fix trivial unused warnings
[apps/agl-service-homescreen.git]
/
src
/
hs-appinfo.cpp
diff --git
a/src/hs-appinfo.cpp
b/src/hs-appinfo.cpp
index
6b22265
..
b072ee0
100644
(file)
--- a/
src/hs-appinfo.cpp
+++ b/
src/hs-appinfo.cpp
@@
-247,7
+247,7
@@
int HS_AppInfo::updateAppDetailList(afb_api_t api, struct json_object *object)
json_object_put(j_runnable);
return 1;
}
json_object_put(j_runnable);
return 1;
}
- addAppDetail(j
_found
);
+ addAppDetail(j
son_object_get(j_found)
);
pushAppListChangedEvent(_keyInstall, j_found);
}
else {
pushAppListChangedEvent(_keyInstall, j_found);
}
else {
@@
-261,7
+261,7
@@
int HS_AppInfo::updateAppDetailList(afb_api_t api, struct json_object *object)
AFB_INFO("uninstalled application isn't in runnables list, appid=%s.", appid.c_str());
return 1;
}
AFB_INFO("uninstalled application isn't in runnables list, appid=%s.", appid.c_str());
return 1;
}
- pushAppListChangedEvent(_keyUninstall,
obj_data
);
+ pushAppListChangedEvent(_keyUninstall,
json_object_get(obj_data)
);
removeAppDetail(appid);
}
else {
removeAppDetail(appid);
}
else {
@@
-418,12
+418,7
@@
std::string HS_AppInfo::id2appid(const std::string &id) const
{
std::string appid;
std::size_t pos = id.find("@");
{
std::string appid;
std::size_t pos = id.find("@");
- if(pos != std::string::npos) {
- appid = id.substr(0,pos);
- }
- else {
- AFB_WARNING("input id error.");
- }
+ appid = id.substr(0,pos);
return appid;
}
return appid;
}