Skip to content

Commit

Permalink
PVS: V780 non-passive (non-PDS) type cannot be copied using the memcp…
Browse files Browse the repository at this point in the history
…y function
  • Loading branch information
wwmayer committed Mar 7, 2019
1 parent 0acb6eb commit 67df9f3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Mod/Mesh/App/Core/Iterator.h
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 67df9f3

Please sign in to comment.