[Messaging] - Removing the macro assert
authorAndrzej Popowski <a.popowski@samsung.com>
Mon, 6 Jul 2015 09:51:38 +0000 (11:51 +0200)
committerHyunJin Park <hj.na.park@samsung.com>
Tue, 7 Jul 2015 07:48:20 +0000 (16:48 +0900)
Change-Id: Ib85a736de309125fb3ca1a06feda9e3aae289055
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
src/messaging/message_service.cc
src/messaging/messaging_util.cc

index c32f7bb72c7818d621fd7cface1acfea2740a6ae..504015577576c8124156e034f3aba2a01d183768 100755 (executable)
@@ -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;
     }
 }
index cbbda696d127162813c49b4db612bbc95bc558e3..992d963095463f14b3ac0176d1252279b296ad66 100755 (executable)
@@ -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;
 }