Salome HOME
Porting to ParaView 5.8
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshEditPreview.cxx
index 97e4587407ee56ab92947588f521e778b8b707d3..2d547817748946866fea01e95ced1dc45c1a71b7 100644 (file)
@@ -222,7 +222,8 @@ void SMESHGUI_MeshEditPreview::SetData (const SMESH::MeshPreviewStruct& previewD
   aCellLocationsArray->SetNumberOfTuples( aNbCells );
 
   aConnectivity->InitTraversal();
-  for( vtkIdType idType = 0, *pts, npts; aConnectivity->GetNextCell( npts, pts ); idType++ )
+  vtkIdType const *pts(nullptr);
+  for( vtkIdType idType = 0, npts; aConnectivity->GetNextCell( npts, pts ); idType++ )
     aCellLocationsArray->SetValue( idType, aConnectivity->GetTraversalLocation( npts ) );
 
   myGrid->SetCells( aCellTypesArray, aCellLocationsArray, aConnectivity );