From 0f33e7488909cc8ffe857e48b7b67320c6ab8b2a Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 2 Mar 2020 10:43:36 +0100 Subject: [PATCH] Make SMESH_creating_meshes_ex07 test OK --- src/SMDS/SMDS_MeshCell.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2