[Tizen] Use std::abort instead of assert 32/266232/1
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 9 Nov 2021 09:10:53 +0000 (18:10 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Tue, 9 Nov 2021 09:10:53 +0000 (18:10 +0900)
Change-Id: Ic43a91489ca9c396da5fd2bb5acf8c049066c7b9

dali/public-api/common/dali-vector.h

index 4d90e2e..dbba5b6 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 // EXTERNAL INCLUDES
-#include <assert.h>
 #include <algorithm>
 #include <cstddef>
 #include <cstdint> // uint32_t
@@ -549,7 +548,10 @@ public: // API
   const ItemType& operator[](SizeType index) const
   {
     DALI_ASSERT_VECTOR(VectorBase::mData && "Vector is empty");
-    assert(index < VectorBase::Count());
+    if(index < VectorBase::Count())
+    {
+      std::abort();
+    }
 
     ItemType* address = reinterpret_cast<ItemType*>(VectorBase::mData);
     address += index;