projects
/
platform
/
core
/
uifw
/
dali-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ca9ab5c
)
Revert "[Tizen] Add assertion to Vector"
author
Taehyub Kim
<taehyub.kim@samsung.com>
Mon, 8 Nov 2021 05:38:44 +0000
(14:38 +0900)
committer
Taehyub Kim
<taehyub.kim@samsung.com>
Mon, 8 Nov 2021 05:38:44 +0000
(14:38 +0900)
This reverts commit
a8b6d8e18765116c9f6d36c0baaad1d38349ddd2
.
dali/public-api/common/dali-vector.h
patch
|
blob
|
history
diff --git
a/dali/public-api/common/dali-vector.h
b/dali/public-api/common/dali-vector.h
index
4d90e2e
..
fd4565e
100644
(file)
--- a/
dali/public-api/common/dali-vector.h
+++ b/
dali/public-api/common/dali-vector.h
@@
-19,7
+19,6
@@
*/
// EXTERNAL INCLUDES
-#include <assert.h>
#include <algorithm>
#include <cstddef>
#include <cstdint> // uint32_t
@@
-549,8
+548,7
@@
public: // API
const ItemType& operator[](SizeType index) const
{
DALI_ASSERT_VECTOR(VectorBase::mData && "Vector is empty");
- assert(index < VectorBase::Count());
-
+ DALI_ASSERT_VECTOR(index < VectorBase::Count() && "Index out of bounds");
ItemType* address = reinterpret_cast<ItemType*>(VectorBase::mData);
address += index;
return *address;