From db0ace8d9cb9b2a8253a6daae02563504ea20dad Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Fri, 21 Oct 2011 19:04:20 +0200 Subject: [PATCH] ENH: make boolean parameter not mandatory by default --- Code/ApplicationEngine/otbWrapperEmptyParameter.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Code/ApplicationEngine/otbWrapperEmptyParameter.h b/Code/ApplicationEngine/otbWrapperEmptyParameter.h index 7463c5068a..0865f16188 100644 --- a/Code/ApplicationEngine/otbWrapperEmptyParameter.h +++ b/Code/ApplicationEngine/otbWrapperEmptyParameter.h @@ -53,7 +53,10 @@ public: protected: /** Constructor */ EmptyParameter() - {} + { + // It does not make sense for an empty parameter to be mandatory + this->MandatoryOff(); + } /** Destructor */ virtual ~EmptyParameter() -- GitLab