[Tizen] Fix svace issue of LayoutController 74/199974/2
authorhuiyu.eun <huiyu.eun@samsung.com>
Mon, 18 Feb 2019 01:46:56 +0000 (10:46 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Mon, 18 Feb 2019 04:35:10 +0000 (13:35 +0900)
Change-Id: I8d8ea0d90623196c951dbf9aff32bb4a2caf433c
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali-csharp-binder/src/layout-controller.cpp

index b564c15..835d6ae 100644 (file)
@@ -27,7 +27,7 @@ namespace
 static int gLayoutControllerId = 1;
 } // unnamed namespace
 
-LayoutController::LayoutController() : mId( gLayoutControllerId++ )
+LayoutController::LayoutController() : handler( NULL ), mId( gLayoutControllerId++ )
 {
   Dali::Adaptor::Get().RegisterProcessor(*this);
 }
@@ -110,7 +110,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutController(void * jarg1) {
   }
 }
 
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutController_SetCallback( void* jarg1, LayoutController::LayoutControllerProcessCallback callback )
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutController_SetCallback( void* jarg1, LayoutController::LayoutControllerProcessCallback callback )
 {
   LayoutController* layoutController = (LayoutController *) jarg1;
 
@@ -120,15 +120,17 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutController_SetCallback( void* ja
   }
 }
 
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutController_GetId( void* jarg1 )
+SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutController_GetId( void* jarg1 )
 {
   LayoutController * layoutController = (LayoutController *)jarg1;
+  int ret = 0;
   if( layoutController )
   {
-    layoutController->GetId();
+    ret = layoutController->GetId();
   }
+  return ret;
 }
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif