From: allu.k Date: Wed, 12 Feb 2020 03:25:10 +0000 (+0530) Subject: Resolved App Launch issue for IoT profile X-Git-Tag: submit/tizen/20200219.092401^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_8.0;p=profile%2Fmobile%2Fapps%2Fnative%2Fclock.git Resolved App Launch issue for IoT profile and build error on Tizen-studio Change-Id: Ic0d24c2babf413b4c0e6913a0a337180f6a48a24 --- diff --git a/clock/inc/Utils/Serialization.h b/clock/inc/Utils/Serialization.h index 768dcb4..62e20a4 100644 --- a/clock/inc/Utils/Serialization.h +++ b/clock/inc/Utils/Serialization.h @@ -149,7 +149,7 @@ namespace utils { } template inline void Deserialize(IReader &r, std::list &list) { - int len; + int len=0; r.Read(&len, sizeof(len)); for (int i = 0; i < len; i++) { T obj(r); @@ -166,7 +166,7 @@ namespace utils { } template inline void Deserialize(IReader &r, std::list *list) { - int len; + int len=0; r.Read(&len, sizeof(len)); for (int i = 0; i < len; i++) { T obj(r); diff --git a/clock/src/Utils/Translate.cpp b/clock/src/Utils/Translate.cpp index 23450b9..9a71e80 100644 --- a/clock/src/Utils/Translate.cpp +++ b/clock/src/Utils/Translate.cpp @@ -29,7 +29,7 @@ std::string Translate::Sprintf(const char *msgid, ...) int ret = vasprintf(&result, gettext(msgid), args); if (ret == -1) - throw std::bad_alloc(); + throw std::string("bad_alloc"); va_end(args); std::string resultStr(result); @@ -46,7 +46,7 @@ std::string Translate::Sprintf(int count, const char *singularForm, const char * int ret = vasprintf(&result, ngettext(singularForm, pluralForm, count), args); if (ret == -1) - throw std::bad_alloc(); + throw std::string("bad_alloc"); va_end(args); std::string resultStr(result); diff --git a/clock/src/View/EditAlarmView.cpp b/clock/src/View/EditAlarmView.cpp index bd04f2c..80d374c 100644 --- a/clock/src/View/EditAlarmView.cpp +++ b/clock/src/View/EditAlarmView.cpp @@ -196,7 +196,6 @@ void EditAlarmView::CreateContent(Evas_Object *parent) evas_object_size_hint_expand_set(content_, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(content_, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_genlist_mode_set(content_, ELM_LIST_COMPRESS); - elm_genlist_realization_mode_set(content_, EINA_TRUE); evas_object_show(content_); eext_object_event_callback_add(content_, EEXT_CALLBACK_BACK, EditAlarmView::BackButtonOnMainClicked, this);