From daf986355a4c74500765a654cb3e62b46de26966 Mon Sep 17 00:00:00 2001
From: Julien Malik <julien.malik@c-s.fr>
Date: Fri, 25 Nov 2011 15:43:15 +0100
Subject: [PATCH] ENH: SetKey takes a std::string reference

---
 Code/ApplicationEngine/otbWrapperParameterKey.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/ApplicationEngine/otbWrapperParameterKey.cxx b/Code/ApplicationEngine/otbWrapperParameterKey.cxx
index 4e57bffc46..b973706e97 100644
--- a/Code/ApplicationEngine/otbWrapperParameterKey.cxx
+++ b/Code/ApplicationEngine/otbWrapperParameterKey.cxx
@@ -24,13 +24,13 @@ namespace otb
 namespace Wrapper
 {
 
-  ParameterKey::ParameterKey() : m_Key("")
+ParameterKey::ParameterKey() : m_Key("")
 {
 }
 
 ParameterKey::ParameterKey( const char * val )
 {
-  this->SetKey(val);
+  this->SetKey(std::string(val));
 }
 
 ParameterKey::ParameterKey( const std::string & val )
-- 
GitLab