projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65653ed
)
SpatialSort: use std::vector::resize( 0 ) to improve readability.
author
Kim Kulling
<kim.kulling@goolemail.com>
Mon, 8 May 2017 19:57:08 +0000
(21:57 +0200)
committer
Kim Kulling
<kim.kulling@goolemail.com>
Mon, 8 May 2017 19:57:08 +0000
(21:57 +0200)
code/SpatialSort.cpp
patch
|
blob
|
history
diff --git
a/code/SpatialSort.cpp
b/code/SpatialSort.cpp
index
3825dc3
..
a350c07
100644
(file)
--- a/
code/SpatialSort.cpp
+++ b/
code/SpatialSort.cpp
@@
-269,7
+269,7
@@
void SpatialSort::FindIdenticalPositions( const aiVector3D& pPosition,
// clear the array in this strange fashion because a simple clear() would also deallocate
// the array which we want to avoid
- poResults.
erase( poResults.begin(), poResults.end()
);
+ poResults.
resize( 0
);
// do a binary search for the minimal distance to start the iteration there
unsigned int index = (unsigned int)mPositions.size() / 2;