From 9334054522482f4e20c93e5d911dc0515f50b86a 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.39.2