From: eap Date: Fri, 9 Apr 2010 06:11:05 +0000 (+0000) Subject: EHPOC X-Git-Tag: V5_1_main_FINAL~141 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=885b3e57e0b17ca3d1fc1a5c5beb80f1fcdd6ef5;p=tools%2Fmedcoupling.git EHPOC * replace vector<>::data() by &vector<>::front() --- diff --git a/src/INTERP_KERNEL/CurveIntersectorP0P0.txx b/src/INTERP_KERNEL/CurveIntersectorP0P0.txx index d3feea029..047570968 100644 --- a/src/INTERP_KERNEL/CurveIntersectorP0P0.txx +++ b/src/INTERP_KERNEL/CurveIntersectorP0P0.txx @@ -64,8 +64,8 @@ namespace INTERP_KERNEL int s, nbSegS = 1 + BASE_INTERSECTOR::getRealSourceCoordinates(iS,coordsS); for ( s = 0; s < nbSegS; ++s ) { - double surf = BASE_INTERSECTOR::intersectSegments(coordsT.data() + t*SPACEDIM, - coordsS.data() + s*SPACEDIM); + double surf = BASE_INTERSECTOR::intersectSegments(&coordsT[0] + t*SPACEDIM, + &coordsS[0] + s*SPACEDIM); if(surf!=0.) resRow.insert(std::make_pair(OTT::indFC(iS),surf)); } diff --git a/src/INTERP_KERNEL/CurveIntersectorP0P1.txx b/src/INTERP_KERNEL/CurveIntersectorP0P1.txx index 6ff2ac993..c11e2ca34 100644 --- a/src/INTERP_KERNEL/CurveIntersectorP0P1.txx +++ b/src/INTERP_KERNEL/CurveIntersectorP0P1.txx @@ -71,8 +71,8 @@ namespace INTERP_KERNEL int s, nbSegS = 1 + BASE_INTERSECTOR::getRealSourceCoordinates(iS,coordsS); for ( s = 0; s < nbSegS; ++s ) { - double surf = BASE_INTERSECTOR::intersectSegments(segmentsT[t]._coords.data(), - coordsS.data() + s*SPACEDIM); + double surf = BASE_INTERSECTOR::intersectSegments(&segmentsT[t]._coords[0], + &coordsS[0] + s*SPACEDIM); if(surf!=0.) { typename MyMatrix::value_type::const_iterator iterRes=resRow.find(OTT::indFC(iS)); diff --git a/src/INTERP_KERNEL/CurveIntersectorP1P0.txx b/src/INTERP_KERNEL/CurveIntersectorP1P0.txx index 49008d088..a6c372c2a 100644 --- a/src/INTERP_KERNEL/CurveIntersectorP1P0.txx +++ b/src/INTERP_KERNEL/CurveIntersectorP1P0.txx @@ -71,8 +71,8 @@ namespace INTERP_KERNEL BASE_INTERSECTOR::_meshS, segmentsS); for ( int s = 0; s < segmentsS.size(); ++s ) { - double surf = BASE_INTERSECTOR::intersectSegments(segmentsS[s]._coords.data(), - coordsT.data() + t*SPACEDIM); + double surf = BASE_INTERSECTOR::intersectSegments(&segmentsS[s]._coords[0], + &coordsT[0] + t*SPACEDIM); if(surf!=0.) { int nS = segmentsS[s]._nodeId; diff --git a/src/INTERP_KERNEL/CurveIntersectorP1P1.txx b/src/INTERP_KERNEL/CurveIntersectorP1P1.txx index fa39b2e5f..0b5ab3971 100644 --- a/src/INTERP_KERNEL/CurveIntersectorP1P1.txx +++ b/src/INTERP_KERNEL/CurveIntersectorP1P1.txx @@ -65,8 +65,8 @@ namespace INTERP_KERNEL BASE_INTERSECTOR::_meshS, segmentsS); for ( int s = 0; s < segmentsS.size(); ++s ) { - double surf = BASE_INTERSECTOR::intersectSegments(segmentsT[t]._coords.data(), - segmentsS[s]._coords.data()); + double surf = BASE_INTERSECTOR::intersectSegments(&segmentsT[t]._coords[0], + &segmentsS[s]._coords[0]); if(surf!=0.) { int nS = segmentsS[s]._nodeId;