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:
b5ce6ba
)
[Tizen] Use std::abort instead of assert
32/266232/1
author
Heeyong Song
<heeyong.song@samsung.com>
Tue, 9 Nov 2021 09:10:53 +0000
(18:10 +0900)
committer
Heeyong 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
patch
|
blob
|
history
diff --git
a/dali/public-api/common/dali-vector.h
b/dali/public-api/common/dali-vector.h
index
4d90e2e
..
dbba5b6
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,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;