From 270d55cf05539c2cfbe303b6d9775bb42b62b860 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 17 Nov 2016 12:32:01 +0300 Subject: [PATCH] Fix compilation error on some platforms. --- src/SMESHDS/SMESHDS_Mesh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMESHDS/SMESHDS_Mesh.cxx b/src/SMESHDS/SMESHDS_Mesh.cxx index bdd2239d1..e7a10d7fe 100644 --- a/src/SMESHDS/SMESHDS_Mesh.cxx +++ b/src/SMESHDS/SMESHDS_Mesh.cxx @@ -2202,7 +2202,7 @@ void SMESHDS_Mesh::compactMesh() if ( true ) { - SetOfNodes newNodes(newNodeSize+1,0); // 0 not used, SMDS numbers 1..n + SetOfNodes newNodes(newNodeSize+1,NULL); // 0 not used, SMDS numbers 1..n int newSmdsId = 0; for (int i = 0; i < nbNodes; i++) { @@ -2233,7 +2233,7 @@ void SMESHDS_Mesh::compactMesh() } } - SetOfCells newCells(newCellSize+1, 0); // 0 not used, SMDS numbers 1..n + SetOfCells newCells(newCellSize+1, NULL); // 0 not used, SMDS numbers 1..n vector newVtkToSmds(newCellSize+1, -1); int myCellsSize = myCells.size(); -- 2.39.2