From 2a7217e7261eaf4411f15012b90909839df4079d Mon Sep 17 00:00:00 2001
From: Victor Poughon <victor.poughon@cnes.fr>
Date: Fri, 21 Dec 2018 11:55:40 +0100
Subject: [PATCH] DOC: fix more cookbook warnings

---
 Modules/Applications/AppImageUtils/app/otbRescale.cxx    | 4 ++--
 Modules/Applications/AppMathParser/app/otbBandMath.cxx   | 4 ++--
 Modules/Applications/AppMathParserX/app/otbBandMathX.cxx | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Modules/Applications/AppImageUtils/app/otbRescale.cxx b/Modules/Applications/AppImageUtils/app/otbRescale.cxx
index ad0992f504..ab7b27c23e 100644
--- a/Modules/Applications/AppImageUtils/app/otbRescale.cxx
+++ b/Modules/Applications/AppImageUtils/app/otbRescale.cxx
@@ -69,8 +69,6 @@ private:
     AddParameter(ParameterType_OutputImage, "out",  "Output Image");
     SetParameterDescription( "out" , "The rescaled image filename." );
 
-    AddRAMParameter();
-
     AddParameter(ParameterType_Float,      "outmin", "Output min value");
     AddParameter(ParameterType_Float,      "outmax", "Output max value");
     SetDefaultParameterFloat("outmin", 0.0);
@@ -81,6 +79,8 @@ private:
     MandatoryOff("outmin");
     MandatoryOff("outmax");
 
+    AddRAMParameter();
+
     // Doc example parameter settings
     SetDocExampleParameterValue("in", "QB_Toulouse_Ortho_PAN.tif");
     SetDocExampleParameterValue("out", "rescaledImage.png uchar");
diff --git a/Modules/Applications/AppMathParser/app/otbBandMath.cxx b/Modules/Applications/AppMathParser/app/otbBandMath.cxx
index b738cdfa4f..fdcc05c795 100644
--- a/Modules/Applications/AppMathParser/app/otbBandMath.cxx
+++ b/Modules/Applications/AppMathParser/app/otbBandMath.cxx
@@ -109,14 +109,14 @@ private:
       "Output image which is the result of the mathematical expressions on input"
       " image list operands.");
 
-    AddRAMParameter();
-
     AddParameter( ParameterType_String, "exp", "Expression");
     SetParameterDescription(
       "exp",
       "The muParser mathematical expression to apply on input images."
     );
 
+    AddRAMParameter();
+
     // Doc example parameter settings
     SetDocExampleParameterValue(
       "il",
diff --git a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx
index 70f8a6874d..15993a3c79 100644
--- a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx
+++ b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx
@@ -208,8 +208,6 @@ private:
     AddParameter( ParameterType_OutputImage, "out", "Output Image" );
     SetParameterDescription( "out", "Output image." );
 
-    AddRAMParameter();
-
     AddParameter( ParameterType_String, "exp", "Expressions" );
     SetParameterDescription(
       "exp",
@@ -230,6 +228,8 @@ private:
     );
     MandatoryOff( "outcontext" );
 
+    AddRAMParameter();
+
     // Doc example parameter settings
     SetDocExampleParameterValue(
       "il",
-- 
GitLab