From c8e6a36db3fc39d86f29aa67274200db54a2a954 Mon Sep 17 00:00:00 2001
From: Cyrille Valladeau <cyrille.valladeau@c-s.fr>
Date: Tue, 12 May 2009 17:27:37 +0200
Subject: [PATCH] ENH : supress cout/endl

---
 Code/BasicFilters/otbBinaryImageToDensityImageFilter.txx | 1 -
 Code/Projections/otbVectorDataProjectionFilter.txx       | 5 ++++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Code/BasicFilters/otbBinaryImageToDensityImageFilter.txx b/Code/BasicFilters/otbBinaryImageToDensityImageFilter.txx
index 3a8419c239..2201cc6e2a 100644
--- a/Code/BasicFilters/otbBinaryImageToDensityImageFilter.txx
+++ b/Code/BasicFilters/otbBinaryImageToDensityImageFilter.txx
@@ -51,7 +51,6 @@ void
 BinaryImageToDensityImageFilter<TInputImage, TOutputImage, TCountFunction>
 ::GenerateInputRequestedRegion()
 {
-  std::cout<<"GenerateInputRequestedRegion"<<std::endl;
   // call the superclass' implementation of this method
   Superclass::GenerateInputRequestedRegion();
 
diff --git a/Code/Projections/otbVectorDataProjectionFilter.txx b/Code/Projections/otbVectorDataProjectionFilter.txx
index 4e6870505b..8ed7c61a34 100644
--- a/Code/Projections/otbVectorDataProjectionFilter.txx
+++ b/Code/Projections/otbVectorDataProjectionFilter.txx
@@ -397,7 +397,9 @@ VectorDataProjectionFilter<TInputVectorData,TOutputVectorData>
   InputChildrenListType children = source->GetChildrenList();
 
   // For each child
-  for(typename InputChildrenListType::iterator it = children.begin(); it!=children.end();++it)
+typename InputChildrenListType::iterator it = children.begin();
+while(it!=children.end())
+//for(typename InputChildrenListType::iterator it = children.begin(); it!=children.end();++it)
   {
     typename OutputInternalTreeNodeType::Pointer newContainer;
 
@@ -492,6 +494,7 @@ VectorDataProjectionFilter<TInputVectorData,TOutputVectorData>
         break;
       }
     }
+++it;
   }
 }
 
-- 
GitLab