From 5cf16aa9f986e8e409c94e0627b257ff18ee30c9 Mon Sep 17 00:00:00 2001 From: "allu.k" Date: Wed, 12 Feb 2020 08:55:10 +0530 Subject: [PATCH] Resolved App Launch issue for IoT profile and build error on Tizen-studio Change-Id: Ic0d24c2babf413b4c0e6913a0a337180f6a48a24 --- clock/inc/Utils/Serialization.h | 4 ++-- clock/src/Utils/Translate.cpp | 4 ++-- clock/src/View/EditAlarmView.cpp | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) 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); -- 2.7.4