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
(parent:
1b975b4
)
[Tizen] Remove throwing exception
76/265676/1
author
Heeyong Song
<heeyong.song@samsung.com>
Wed, 27 Oct 2021 05:06:40 +0000
(14:06 +0900)
committer
Heeyong Song
<heeyong.song@samsung.com>
Wed, 27 Oct 2021 05:06:40 +0000
(14:06 +0900)
Change-Id: I9c186d07dee25923d68caf39e67eb771d1cb74e4
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
2fea460
..
4d90e2e
100644
(file)
--- 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<ItemType*>(VectorBase::mData);
address += index;
return *address;