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=0f33e7488909cc8ffe857e48b7b67320c6ab8b2a;hp=76e2778111d3381ee665ae99b621e6d0229012a0;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);