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:
32e4dd0
)
OpenGEX: Use C++11 range-based for loop
author
Turo Lamminen
<turotl@gmail.com>
Sun, 22 May 2016 09:27:26 +0000
(12:27 +0300)
committer
Turo Lamminen
<turotl@gmail.com>
Mon, 23 May 2016 14:33:49 +0000
(17:33 +0300)
code/OpenGEXImporter.cpp
patch
|
blob
|
history
diff --git
a/code/OpenGEXImporter.cpp
b/code/OpenGEXImporter.cpp
index
cad3322
..
d99dc33
100644
(file)
--- a/
code/OpenGEXImporter.cpp
+++ b/
code/OpenGEXImporter.cpp
@@
-236,8
+236,8
@@
OpenGEXImporter::VertexContainer::~VertexContainer() {
delete[] m_vertices;
delete[] m_normals;
- for(
size_t i = 0; i < AI_MAX_NUMBER_OF_TEXTURECOORDS; i++
) {
- delete []
m_textureCoords[ i ]
;
+ for(
auto &texcoords : m_textureCoords
) {
+ delete []
texcoords
;
}
}