DCHECK(application.get());
Json::Value* json_app = NULL;
- const uint32_t app_id = application->mobile_app_id()->asInt();
+ const uint32_t app_id = application->mobile_app_id()->asUInt();
for (std::vector<Json::Value>::iterator it = saved_applications_.begin();
it != saved_applications_.end(); ++it) {
- if ((*it)[strings::app_id].asInt() == app_id) {
+ if ((*it)[strings::app_id].asUInt() == app_id) {
json_app = &(*it);
LOG4CXX_INFO(logger_, "ResumeCtrl Application with this id"
"is already exist ( update info ) " << app_id);
for (std::vector<Json::Value>::iterator it = saved_applications_.begin();
it != saved_applications_.end(); ++it) {
- if ((*it)[strings::app_id].asInt() ==
- application->mobile_app_id()->asInt()) {
+ if ((*it)[strings::app_id].asUInt() ==
+ application->mobile_app_id()->asUInt()) {
mobile_apis::HMILevel::eType saved_hmi_level;
mobile_apis::HMILevel::eType restored_hmi_level;
}
MessageHelper::SendHMIStatusNotification(*(application.get()));
LOG4CXX_INFO(logger_, "Restore Application "
- << (*it)[strings::app_id].asInt()
+ << (*it)[strings::app_id].asUInt()
<< " to HMILevel " << restored_hmi_level);
return true;
}
std::vector<Json::Value>::iterator it = saved_applications_.begin();
for (; it != saved_applications_.end(); ++it) {
- if ((*it)[strings::app_id].asInt() ==
- application->mobile_app_id()->asInt()) {
+ if ((*it)[strings::app_id].asUInt() ==
+ application->mobile_app_id()->asUInt()) {
break;
}
}
for (std::vector<Json::Value>::iterator it = saved_applications_.begin();
it != saved_applications_.end(); ) {
- if ((*it)[strings::app_id].asInt() == application->mobile_app_id()->asInt()) {
+ if ((*it)[strings::app_id].asUInt() == application->mobile_app_id()->asUInt()) {
saved_applications_.erase(it);
return true;
} else {
std::vector<Json::Value>::iterator it = saved_applications_.begin();
for (; it != saved_applications_.end(); ++it) {
- if ((*it)[strings::app_id].asInt() ==
- application->mobile_app_id()->asInt()) {
+ if ((*it)[strings::app_id].asUInt() ==
+ application->mobile_app_id()->asUInt()) {
uint32_t saved_hash = (*it)[strings::hash_id].asUInt();
uint32_t time_stamp= (*it)[strings::time_stamp].asUInt();
bool ResumeCtrl::CheckApplicationHash(uint32_t app_id, uint32_t hash) {
std::vector<Json::Value>::iterator it = saved_applications_.begin();
for (; it != saved_applications_.end(); ++it) {
- if ((*it)[strings::app_id].asInt() == app_id) {
+ if ((*it)[strings::app_id].asUInt() == app_id) {
uint32_t saved_hash = (*it)[strings::hash_id].asUInt();
if (hash == saved_hash) {
return true;