From ef3973f3f50b52cb8009b47ed956cf9aaed9d83c Mon Sep 17 00:00:00 2001
From: Jordi Inglada <jordi.inglada@cesbio.cnes.fr>
Date: Thu, 1 Mar 2018 15:08:08 +0100
Subject: [PATCH] ENH: pas by const ref to sampleCombine

---
 Modules/Learning/Sampling/include/otbSampleAugmentation.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Modules/Learning/Sampling/include/otbSampleAugmentation.h b/Modules/Learning/Sampling/include/otbSampleAugmentation.h
index 432dbe8a26..b778e79f26 100644
--- a/Modules/Learning/Sampling/include/otbSampleAugmentation.h
+++ b/Modules/Learning/Sampling/include/otbSampleAugmentation.h
@@ -164,7 +164,7 @@ void findKNNIndices(const SampleVectorType& inSamples,
 
 /** Generate the new sample in the line linking s1 and s2
 */
-SampleType smoteCombine(SampleType s1, SampleType s2, double position)
+SampleType smoteCombine(const SampleType& s1, const SampleType& s2, double position)
 {
   auto result = s1;
   for(size_t i=0; i<s1.size(); ++i)
-- 
GitLab