From: Jinho, Lee Date: Fri, 29 Sep 2017 06:52:30 +0000 (+0900) Subject: [4.0] Ubuntu Build Error fix X-Git-Tag: accepted/tizen/4.0/unified/20171010.163017^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F153696%2F2;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [4.0] Ubuntu Build Error fix Change-Id: I3cc460af2b8b9f6bbcc8a7daf5b3edab853790a2 --- diff --git a/adaptors/integration-api/x11/imf-manager-impl.h b/adaptors/integration-api/x11/imf-manager-impl.h index f069d42..f8d456b 100755 --- a/adaptors/integration-api/x11/imf-manager-impl.h +++ b/adaptors/integration-api/x11/imf-manager-impl.h @@ -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; diff --git a/adaptors/x11/imf-manager-impl-x.cpp b/adaptors/x11/imf-manager-impl-x.cpp index 1d9294f..c51bcff 100755 --- a/adaptors/x11/imf-manager-impl-x.cpp +++ b/adaptors/x11/imf-manager-impl-x.cpp @@ -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" );