From cc5832843a63cfe3a6b52ee57f73a67c095a62e4 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Wed, 27 Oct 2021 14:06:40 +0900 Subject: [PATCH] [Tizen] Remove throwing exception Change-Id: I9c186d07dee25923d68caf39e67eb771d1cb74e4 --- dali/public-api/common/dali-vector.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dali/public-api/common/dali-vector.h b/dali/public-api/common/dali-vector.h index 2fea460..4d90e2e 100644 --- a/dali/public-api/common/dali-vector.h +++ b/dali/public-api/common/dali-vector.h @@ -549,12 +549,8 @@ public: // API const ItemType& operator[](SizeType index) const { DALI_ASSERT_VECTOR(VectorBase::mData && "Vector is empty"); - DALI_ASSERT_VECTOR(index < VectorBase::Count() && "Index out of bounds"); - if(index >= VectorBase::Count()) - { - // Assert to debug - assert(0); - } + assert(index < VectorBase::Count()); + ItemType* address = reinterpret_cast(VectorBase::mData); address += index; return *address; -- 2.7.4