From ebb2a7ec6ea54a4f37e89bf5c0faefb40f4393da Mon Sep 17 00:00:00 2001 From: Manuel Grizonnet <manuel.grizonnet@gmail.com> Date: Sun, 11 Apr 2010 15:49:31 +0200 Subject: [PATCH] BUG: rename uint to unsigned int to avoid compilation error on os x --- Code/Common/otbPostGISTable.txx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/Common/otbPostGISTable.txx b/Code/Common/otbPostGISTable.txx index 1c9981f7db..8d32c4e982 100644 --- a/Code/Common/otbPostGISTable.txx +++ b/Code/Common/otbPostGISTable.txx @@ -78,7 +78,7 @@ PostGISTable<TConnectionImplementation, TPrecision, SpatialDimension> std::stringstream sqlCmd; this->InsertBegin(sqlCmd); sqlCmd << "POINT( "; - for (uint i = 0; i < SpatialDimension; i++) + for (unsigned int i = 0; i < SpatialDimension; i++) { sqlCmd << pt[i] << " "; } @@ -103,7 +103,7 @@ PostGISTable<TConnectionImplementation, TPrecision, SpatialDimension> VertexIterator itVertex = l->GetVertexList()->Begin(); while (itVertex != l->GetVertexList()->End()) { - for (uint i = 0; i < SpatialDimension; i++) + for (unsigned int i = 0; i < SpatialDimension; i++) { sqlCmd << itVertex.Value()[i] << " "; ++itVertex; @@ -146,7 +146,7 @@ PostGISTable<TConnectionImplementation, TPrecision, SpatialDimension> { //polygon->line_to(itVertex.Value()[0],m_SensorModelFlip*itVertex.Value()[1]); //std::cout << "vertex: " << itVertex.Value()<< std::endl; - for (uint i = 0; i < SpatialDimension; ++i) + for (unsigned int i = 0; i < SpatialDimension; ++i) { sqlCmd << itVertex.Value()[i] << " "; //++itVertex; @@ -181,7 +181,7 @@ PostGISTable<TConnectionImplementation, TPrecision, SpatialDimension> while (itVertex != correctCurrentPolygonIntRing->GetVertexList()->End()) { //polygon->line_to(itVertex.Value()[0],m_SensorModelFlip*itVertex.Value()[1]); - for (uint i = 0; i < SpatialDimension; i++) + for (unsigned int i = 0; i < SpatialDimension; i++) { sqlCmd << itVertex.Value()[i] << " "; ++itVertex; -- GitLab