From f3939d71b8cbebd483383bf94174e1a6a622517e Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Mon, 2 Dec 2019 12:20:33 +0100
Subject: [PATCH] STYLE: code review

---
 .../AppClassification/include/otbVectorPrediction.h             | 2 +-
 .../AppClassification/include/otbVectorPrediction.hxx           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Modules/Applications/AppClassification/include/otbVectorPrediction.h b/Modules/Applications/AppClassification/include/otbVectorPrediction.h
index 89f257f46b..7390c407f8 100644
--- a/Modules/Applications/AppClassification/include/otbVectorPrediction.h
+++ b/Modules/Applications/AppClassification/include/otbVectorPrediction.h
@@ -98,7 +98,7 @@ private:
   /** Method returning whether the confidence map should be computed, depending on the regression mode and input parameters */
   bool shouldComputeConfidenceMap() const;
 
-  /** Method returning the input list sample from the input layer */
+  /** Method returning the input list sample from the input DataSource */
   typename ListSampleType::Pointer ReadInputListSample(ogr::DataSource::Pointer source);
 
   /** Normalize a list sample using the statistic file given  */
diff --git a/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx b/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx
index f62f08982c..0cc24a8bef 100644
--- a/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx
+++ b/Modules/Applications/AppClassification/include/otbVectorPrediction.hxx
@@ -78,7 +78,7 @@ typename VectorPrediction<RegressionMode>::ListSampleType::Pointer VectorPredict
   auto layer  = source->GetLayer(0);
   typename ListSampleType::Pointer input = ListSampleType::New();
 
-  const unsigned int nbFeatures = GetSelectedItems("feat").size();
+  const auto nbFeatures = GetSelectedItems("feat").size();
   input->SetMeasurementVectorSize(nbFeatures);
 
   ogr::Feature             feature = layer.ogr().GetNextFeature();
-- 
GitLab