From: Anthony Geay Date: Mon, 2 Mar 2020 09:43:36 +0000 (+0100) Subject: Make SMESH_creating_meshes_ex07 test OK X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9334054522482f4e20c93e5d911dc0515f50b86a;p=modules%2Fsmesh.git Make SMESH_creating_meshes_ex07 test OK --- diff --git a/src/SMDS/SMDS_MeshCell.cxx b/src/SMDS/SMDS_MeshCell.cxx index fc9f74031..3628aafe3 100644 --- a/src/SMDS/SMDS_MeshCell.cxx +++ b/src/SMDS/SMDS_MeshCell.cxx @@ -490,10 +490,10 @@ void SMDS_MeshCell::init( SMDSAbs_EntityType theEntity, bool SMDS_MeshCell::ChangeNodes(const SMDS_MeshNode* nodes[], const int theNbNodes) { vtkIdType npts = 0; - vtkIdType *pts; + vtkIdType *pts(nullptr); vtkIdType const *tmp(nullptr); getGrid()->GetCellPoints( GetVtkID(), npts, tmp ); - std::copy(tmp,tmp+npts,pts); + pts = const_cast(tmp); if ( theNbNodes != npts ) { MESSAGE("ChangeNodes problem: not the same number of nodes " << npts << " -> " << theNbNodes);