From 352716d05be2a80eddd71250e512ab13b2348b55 Mon Sep 17 00:00:00 2001
From: Thomas Feuvrier <thomas.feuvrier@c-s.fr>
Date: Thu, 30 Apr 2009 10:09:08 +0200
Subject: [PATCH] WRG: otbImageLayer.txx:227: warning: passing 'double' for
 argument 1 to 'void std::vector<_Tp, _Alloc>::push_back(...

---
 Code/Visualization/otbImageLayer.txx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/Visualization/otbImageLayer.txx b/Code/Visualization/otbImageLayer.txx
index d2816a08da..9835ad19e2 100644
--- a/Code/Visualization/otbImageLayer.txx
+++ b/Code/Visualization/otbImageLayer.txx
@@ -221,12 +221,12 @@ ImageLayer<TImage,TOutputImage>
     typename RenderingFunctionType::ExtremaVectorType min, max;
     otbMsgDevMacro(<<"ImageLayer::AutoMinMaxRenderingFunctionSetup(): "<<" ("<<this->GetName()<<") "<<nbComps<<" components, quantile= "<<100*m_AutoMinMaxQuantile<<" %");
     // For each components, use the histogram to compute min and max
-    typedef RenderingFunctionType::ScalarPixelType  RenderingFunctionScalarPixelType;
+    typedef typename RenderingFunctionType::ScalarPixelType  RenderingFunctionScalarPixelType;
     for(unsigned int comp = 0; comp < nbComps;++comp)
       {
       // Compute quantiles
       min.push_back(static_cast<RenderingFunctionScalarPixelType>( m_HistogramList->GetNthElement(comp)->Quantile(0,m_AutoMinMaxQuantile)));
-      max.push_back(static_cast<RenderingFunctionScalarPixelType>(m_HistogramList->GetNthElement(comp)->Quantile(0,1-m_AutoMinMaxQuantile)));
+      max.push_back(static_cast<RenderingFunctionScalarPixelType>(*/m_HistogramList->GetNthElement(comp)->Quantile(0,1-m_AutoMinMaxQuantile)));
       otbMsgDevMacro(<<"ImageLayer::AutoMinMaxRenderingFunctionSetup():"<<" ("<<this->GetName()<<")"<< " component "<<comp<<", min= "<<min.back()<<", max= "<<max.back());
       }
     
-- 
GitLab