From 9368787c2c3a32e98f5ddd9c6537e5906e226035 Mon Sep 17 00:00:00 2001 From: geay Date: Fri, 20 Jun 2014 15:41:51 +0200 Subject: [PATCH] Warning hunting ! One T-bone steack for me Adrien :) --- src/MEDCoupling/MEDCouplingPointSet.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingPointSet.cxx b/src/MEDCoupling/MEDCouplingPointSet.cxx index 27ce1b93b..5b221e9d4 100644 --- a/src/MEDCoupling/MEDCouplingPointSet.cxx +++ b/src/MEDCoupling/MEDCouplingPointSet.cxx @@ -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 da1 = DataArrayInt::New(), da2 = DataArrayInt::New(); + MEDCouplingAutoRefCountObjectPtr 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()); -- 2.39.2