]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Minor bug fix : convertDegeneratedCellsAndRemoveFlatOnes()
authorabn <adrien.bruneton@cea.fr>
Fri, 14 Sep 2018 13:25:14 +0000 (15:25 +0200)
committerabn <adrien.bruneton@cea.fr>
Fri, 14 Sep 2018 13:25:14 +0000 (15:25 +0200)
src/MEDCoupling/MEDCouplingUMesh.cxx

index 234d34e9e5f4ac19ab08e2acb98b621eb94846ca..1d8ba5b2b027210a68896cbb43c593461e286dfd 100644 (file)
@@ -4688,7 +4688,7 @@ DataArrayInt *MEDCouplingUMesh::convertDegeneratedCellsAndRemoveFlatOnes()
   int nbOfCells=getNumberOfCells();
   MCAuto<DataArrayInt> ret(DataArrayInt::New()); ret->alloc(0,1);
   if(nbOfCells<1)
-    return ret;
+    return ret.retn();
   int initMeshLgth=getNodalConnectivityArrayLen();
   int *conn=_nodal_connec->getPointer();
   int *index=_nodal_connec_index->getPointer();