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:
c6f670f
)
Fix coverity finding: use deep copy instead of reference showing to
author
Kim Kulling
<kim.kulling@googlemail.com>
Tue, 30 Aug 2016 17:46:34 +0000
(19:46 +0200)
committer
Kim Kulling
<kim.kulling@googlemail.com>
Tue, 30 Aug 2016 17:46:34 +0000
(19:46 +0200)
mem-adress when reading and calling push_back in a std::vector.
code/IFCGeometry.cpp
patch
|
blob
|
history
diff --git
a/code/IFCGeometry.cpp
b/code/IFCGeometry.cpp
index
5a2e4a0
..
3d0cda3
100644
(file)
--- a/
code/IFCGeometry.cpp
+++ b/
code/IFCGeometry.cpp
@@
-282,7
+282,7
@@
void ProcessRevolvedAreaSolid(const IfcRevolvedAreaSolid& solid, TempMesh& resul
const size_t next = (i+1)%size;
result.vertcnt.push_back(4);
- const IfcVector3
&
base_0 = out[base+i*4+3],base_1 = out[base+next*4+3];
+ const IfcVector3 base_0 = out[base+i*4+3],base_1 = out[base+next*4+3];
out.push_back(base_0);
out.push_back(base_1);