Fix coverity finding: use deep copy instead of reference showing to

mem-adress when reading and calling push_back in a std::vector.
pull/996/head
Kim Kulling 2016-08-30 19:46:34 +02:00
parent c6f670ff50
commit 659a55be4a
1 changed files with 1 additions and 1 deletions

View 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);