EgtGeomKernel 1.9k3 :

- for each (.. in ..) sostituito da for ( .. : ..) vero costrutto C++.
This commit is contained in:
Dario Sassi
2018-11-28 16:55:29 +00:00
parent a98b5d0d0a
commit 88cce87eab
5 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -269,7 +269,7 @@ PolyLine::GetLocalBBox( BBox3d& b3Loc) const
{
// assegno il box in locale, scorrendo tutti i punti
b3Loc.Reset() ;
for each ( const auto& UPnt in m_lUPoints)
for ( const auto& UPnt : m_lUPoints)
b3Loc.Add( UPnt.first) ;
return true ;
@@ -1030,7 +1030,7 @@ PolyLine::GetConvexHullXY( PNTVECTOR& vConvHull) const
// inserisco i punti in un array ( considero solo x e y, annullo le z)
PNTVECTOR vPnt( nSize) ;
int k = 0 ;
for each ( const auto& Pnt in m_lUPoints)
for ( const auto& Pnt : m_lUPoints)
vPnt[k++] = Point3d( Pnt.first.x, Pnt.first.y, 0) ;
// ordino secondo le X crescenti
sort( vPnt.begin(), vPnt.end(),