Salome HOME
Warning hunting ! One T-bone steack for me Adrien :)
authorgeay <anthony.geay@cea.fr>
Fri, 20 Jun 2014 13:41:51 +0000 (15:41 +0200)
committergeay <anthony.geay@cea.fr>
Fri, 20 Jun 2014 13:41:51 +0000 (15:41 +0200)
src/MEDCoupling/MEDCouplingPointSet.cxx

index 27ce1b93b0c1dccf1c6ac5daa8b63e6480c4bb8b..5b221e9d47fabefaef5a8f4f449fea62da980c61 100644 (file)
@@ -1474,11 +1474,10 @@ void MEDCouplingPointSet::checkDeepEquivalWith(const MEDCouplingMesh *other, int
   int nbCells=getNumberOfCells();
   if (nbCells != other->getNumberOfCells())
     throw INTERP_KERNEL::Exception("checkDeepEquivalWith : some cells in other are not in this !");
-  int maxId=-1;
-  int dan = da->getNumberOfTuples();
+  int dan(da->getNumberOfTuples());
   if (dan)
     {
-      MEDCouplingAutoRefCountObjectPtr<DataArrayInt> da1 = DataArrayInt::New(), da2 = DataArrayInt::New();
+      MEDCouplingAutoRefCountObjectPtr<DataArrayInt> da1(DataArrayInt::New()),da2(DataArrayInt::New());
       da1->alloc(dan/2,1); da2->alloc(dan/2,1);
       std::copy(da->getConstPointer(), da->getConstPointer()+dan/2, da1->getPointer());
       std::copy(da->getConstPointer()+dan/2, da->getConstPointer()+dan, da2->getPointer());