[4.0] Ubuntu Build Error fix 96/153696/2 accepted/tizen/4.0/unified/20171010.163017 accepted/tizen/4.0/unified/20171011.071825 submit/tizen_4.0/20171010.043359 submit/tizen_4.0/20171011.020858
authorJinho, Lee <jeano.lee@samsung.com>
Fri, 29 Sep 2017 06:52:30 +0000 (15:52 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 29 Sep 2017 07:48:38 +0000 (16:48 +0900)
Change-Id: I3cc460af2b8b9f6bbcc8a7daf5b3edab853790a2

adaptors/integration-api/x11/imf-manager-impl.h
adaptors/x11/imf-manager-impl-x.cpp

index f069d42..f8d456b 100755 (executable)
@@ -72,7 +72,7 @@ public:
    * Constructor
    * @param[in] ecoreXwin, The window is created by application.
    */
-  ImfManager( Ecore_X_Window* ecoreXwin );
+  ImfManager( Ecore_X_Window ecoreXwin );
 
   /**
    * Connect Callbacks required for IMF.
@@ -270,7 +270,7 @@ private:
    * Context created the first time and kept until deleted.
    * @param[in] ecoreXwin, The window is created by application.
    */
-  void CreateContext( Ecore_X_Window* ecoreXwin );
+  void CreateContext( Ecore_X_Window ecoreXwin );
 
   /**
    * @copydoc Dali::ImfManager::DeleteContext()
@@ -284,7 +284,7 @@ private:
 
 private:
   Ecore_IMF_Context* mIMFContext;
-  Ecore_X_Window* mEcoreXWin;
+  Ecore_X_Window mEcoreXWin;
   int mIMFCursorPosition;
   std::string mSurroundingText;
 
index 1d9294f..c51bcff 100755 (executable)
@@ -173,7 +173,7 @@ Dali::ImfManager ImfManager::Get()
 
       // The Ecore_X_Window needs to use the ImfManager.
       // Only when the render surface is window, we can get the Ecore_X_Window.
-      Ecore_X_Window *ecoreXwin( AnyCast< Ecore_X_Window* >( nativeWindow ) );
+      Ecore_X_Window ecoreXwin( AnyCast< Ecore_X_Window >( nativeWindow ) );
       if ( ecoreXwin )
       {
         // If we fail to get Ecore_X_Window, we can't use the ImfManager correctly.
@@ -190,20 +190,20 @@ Dali::ImfManager ImfManager::Get()
     }
   }
 
-  if ( ( imfManager != NULL ) !imfManager->mInited )
+  if ( ( imfManager != NULL ) &&!imfManager->mInited )
   {
     ecore_imf_init();
     imfManager->CreateContext( imfManager->mEcoreXWin );
 
     imfManager->ConnectCallbacks();
-    VirtualKeyboard::ConnectCallbacks( mIMFContext );
+    VirtualKeyboard::ConnectCallbacks( imfManager->mIMFContext );
     imfManager->mInited = true;
   }
 
   return manager;
 }
 
-ImfManager::ImfManager( Ecore_X_Window* ecoreXwin )
+ImfManager::ImfManager(Ecore_X_Window ecoreXwin )
 : mIMFContext(),
   mEcoreXWin( ecoreXwin ),
   mIMFCursorPosition( 0 ),
@@ -219,7 +219,7 @@ ImfManager::~ImfManager()
   Finalize();
 }
 
-void ImfManager::CreateContext( Ecore_X_Window* ecoreXwin )
+void ImfManager::CreateContext( Ecore_X_Window ecoreXwin )
 {
   DALI_LOG_INFO( gLogFilter, Debug::General, "ImfManager::CreateContext\n" );