From 767e951dda008d697e672f9cb2c7fdfbdbe9c3e3 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 7 Mar 2019 21:40:22 +0100 Subject: [PATCH] PVS: V780 non-passive (non-PDS) type cannot be copied using the memcpy function --- src/Mod/Mesh/App/Core/Iterator.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Mod/Mesh/App/Core/Iterator.h b/src/Mod/Mesh/App/Core/Iterator.h index fe8cdc87ce..a8b1ebfb3b 100644 --- a/src/Mod/Mesh/App/Core/Iterator.h +++ b/src/Mod/Mesh/App/Core/Iterator.h @@ -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; }