X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_VtkCellIterator.cxx;h=acd4ccb227357fe110d1ec964526b756eed7817a;hb=c9c3fe8924452af01274d358e5d6d391b1b27375;hp=5c6aec32ddb1b2dbaea01f0ee1be646bd175a011;hpb=63d5619b14edc450a51d92f059879bee1c1fa12d;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_VtkCellIterator.cxx b/src/SMDS/SMDS_VtkCellIterator.cxx index 5c6aec32d..acd4ccb22 100644 --- a/src/SMDS/SMDS_VtkCellIterator.cxx +++ b/src/SMDS/SMDS_VtkCellIterator.cxx @@ -30,7 +30,8 @@ _GetVtkNodes::_GetVtkNodes( TVtkIdList& vtkIds, { vtkUnstructuredGrid* grid = mesh->GetGrid(); const std::vector& 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() ) @@ -50,7 +51,8 @@ _GetVtkNodesToUNV::_GetVtkNodesToUNV( TVtkIdList& vtkIds, 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 ) @@ -140,7 +142,7 @@ _GetVtkNodesPolyh::_GetVtkNodesPolyh( TVtkIdList& vtkIds, 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++ )