X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=pepper-dali%2Finternal%2Fshell-client-impl.cpp;h=33ff32d0567678bc2a0ededd4eaf9c985f130fc7;hb=f46a139361cfe68fd5b2421c04f9ca7766352c8b;hp=865b00243cb05670288e4dd602c43923d32c8d0b;hpb=e91e7d63a33e440aba92ce8ebcc21d8d42d93493;p=platform%2Fcore%2Fuifw%2Fpepper-dali.git diff --git a/pepper-dali/internal/shell-client-impl.cpp b/pepper-dali/internal/shell-client-impl.cpp index 865b002..33ff32d 100644 --- a/pepper-dali/internal/shell-client-impl.cpp +++ b/pepper-dali/internal/shell-client-impl.cpp @@ -302,22 +302,22 @@ void ShellClient::GetSurface( wl_client* client, unsigned int id, wl_resource* s DALI_LOG_INFO( gPepperShellClientLogging, Debug::Verbose, "ShellClient::GetSurface: success. surface = %p\n", mSurface ); } -void ShellClient::SetTitle( const std::string title ) +void ShellClient::SetTitle( const std::string& title ) { mTitle = title; } -std::string ShellClient::GetTitle() const +const std::string& ShellClient::GetTitle() const { return mTitle; } -void ShellClient::SetAppId( const std::string appId ) +void ShellClient::SetAppId( const std::string& appId ) { mAppId = appId; } -std::string ShellClient::GetAppId() const +const std::string& ShellClient::GetAppId() const { return mAppId; } @@ -338,7 +338,7 @@ void ShellClient::SurfaceResourceDestroy( struct wl_resource* resource ) shellClient->mAppId.clear(); } - if( !shellClient->mSurface ) + if( shellClient->mSurface ) { pepper_object_set_user_data( reinterpret_cast< pepper_object_t* >( shellClient->mSurface ), pepper_surface_get_role( shellClient->mSurface ), NULL, NULL ); }