Fix coverity finding: use deep copy instead of reference showing to
authorKim Kulling <kim.kulling@googlemail.com>
Tue, 30 Aug 2016 17:46:34 +0000 (19:46 +0200)
committerKim 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

index 5a2e4a0..3d0cda3 100644 (file)
@@ -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);