PVS: V780 non-passive (non-PDS) type cannot be copied using the memcpy function

This commit is contained in:
wmayer
2019-03-07 21:40:22 +01:00
parent 4e10670fb2
commit 767e951dda

View File

@@ -381,8 +381,6 @@ inline MeshFacetIterator& MeshFacetIterator::operator = (const MeshFacetIterator
_clIter = rpI._clIter;
_bApply = rpI._bApply;
_clTrf = rpI._clTrf;
// dirty flat copy of reference
memcpy((void*)&_rclMesh, &rpI._rclMesh, sizeof(MeshKernel*));
return *this;
}
@@ -469,8 +467,6 @@ inline MeshPointIterator& MeshPointIterator::operator = (const MeshPointIterator
_clIter = rpI._clIter;
_bApply = rpI._bApply;
_clTrf = rpI._clTrf;
// dirty flat copy of reference
memcpy((void*)&_rclMesh, &rpI._rclMesh, sizeof(MeshKernel*));
return *this;
}