From: Andrzej Popowski Date: Mon, 6 Jul 2015 09:51:38 +0000 (+0200) Subject: [Messaging] - Removing the macro assert X-Git-Tag: submit/tizen/20150702.103311^2~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=220f9325cad1364efbf4e8694375f7bcbde8540f;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Messaging] - Removing the macro assert Change-Id: Ib85a736de309125fb3ca1a06feda9e3aae289055 Signed-off-by: Andrzej Popowski --- diff --git a/src/messaging/message_service.cc b/src/messaging/message_service.cc index c32f7bb7..50401557 100755 --- a/src/messaging/message_service.cc +++ b/src/messaging/message_service.cc @@ -20,6 +20,7 @@ #include "common/logger.h" #include "common/platform_exception.h" +#include "common/assert.h" #include "messaging_util.h" #include "message_storage_email.h" @@ -416,7 +417,7 @@ MessageService::MessageService(int id, break; default: LoggerE("Undefined message type: %d", msgType); - assert(false); + Assert(false); break; } } diff --git a/src/messaging/messaging_util.cc b/src/messaging/messaging_util.cc index cbbda696..992d9630 100755 --- a/src/messaging/messaging_util.cc +++ b/src/messaging/messaging_util.cc @@ -33,6 +33,7 @@ #include "tizen/tizen.h" #include "common/logger.h" #include "common/platform_exception.h" +#include "common/assert.h" using common::ErrorCode; using common::PlatformResult; @@ -222,7 +223,7 @@ std::string MessagingUtil::messageTypeToString(MessageType type) { LoggerD("Entered"); std::string type_str; PlatformResult platform_result = messageTypeToString(type, &type_str); - assert(platform_result); + Assert(platform_result); return type_str; }