-// Copyright (C) 2010-2019 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2010-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
{
vtkUnstructuredGrid* grid = mesh->GetGrid();
const std::vector<int>& interlace = SMDS_MeshCell::fromVtkOrder( type );
- vtkIdType npts, *pts;
+ vtkIdType npts;
+ vtkIdType const *pts(nullptr);
grid->GetCellPoints( vtkCellId, npts, pts );
vtkIds.resize( npts );
if ( interlace.empty() )
SMDSAbs_EntityType type )
{
vtkUnstructuredGrid* grid = mesh->GetGrid();
- vtkIdType npts, *pts;
+ vtkIdType npts;
+ vtkIdType const *pts(nullptr);
grid->GetCellPoints( vtkCellId, npts, pts );
const int *ids = 0;
switch ( type )
case SMDSEntity_Polyhedra:
{
vtkIdType nFaces = 0;
- vtkIdType* ptIds = 0;
+ vtkIdType const *ptIds(nullptr);
grid->GetFaceStream( vtkCellId, nFaces, ptIds );
int id = 0, nbNodesInFaces = 0;
for ( int i = 0; i < nFaces; i++ )