From 347eb78ec3521d7ae52be5d12cce0eb03d9a392c Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Tue, 15 Sep 2020 12:14:32 +0900 Subject: [PATCH] Fix svace issue Change-Id: I5a83973fe214ac4849a0331f59b8de4322d7be77 Signed-off-by: huiyu.eun --- dali-csharp-binder/src/dali_wrap.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index 112f8e8..a6326c2 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -19586,12 +19586,14 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Key_keyPressedName_get(void * jarg1) { { Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; std::string *result = 0; + std::string str = ""; arg1 = ( Dali::KeyEvent * )jarg1; { try { - std::string str = ((Dali::KeyEvent const *)arg1)->GetKeyName(); + str = ((Dali::KeyEvent const *)arg1)->GetKeyName(); result = (std::string *) &str; + jresult = SWIG_csharp_string_callback(result->c_str()); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -19611,7 +19613,6 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Key_keyPressedName_get(void * jarg1) { } } - jresult = SWIG_csharp_string_callback(result->c_str()); } return jresult; @@ -19665,12 +19666,13 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Key_keyPressed_get(void * jarg1) { Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; std::string *result = 0; - + std::string str = ""; arg1 = ( Dali::KeyEvent * )jarg1; { try { - std::string str = ((Dali::KeyEvent const *)arg1)->GetKeyString(); + str = ((Dali::KeyEvent const *)arg1)->GetKeyString(); result = (std::string *) &str; + jresult = SWIG_csharp_string_callback(result->c_str()); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -19688,8 +19690,6 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Key_keyPressed_get(void * jarg1) { SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; }; } - - jresult = SWIG_csharp_string_callback(result->c_str()); } return jresult; @@ -19977,17 +19977,17 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Key_logicalKey_get(void * jarg1) { Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; std::string *result = 0; + std::string str = ""; arg1 = ( Dali::KeyEvent * )jarg1; { try { - std::string str = ((Dali::KeyEvent const *)arg1)->GetLogicalKey(); + str = ((Dali::KeyEvent const *)arg1)->GetLogicalKey(); result = (std::string *) &str; + jresult = SWIG_csharp_string_callback(result->c_str()); } CALL_CATCH_EXCEPTION(0); - } - jresult = SWIG_csharp_string_callback(result->c_str()); return jresult; } -- 2.7.4