diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-29 15:48:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-30 08:10:22 +0200 |
commit | 065c8b48a604b70140862d0d02deb584626d6994 (patch) | |
tree | 578c07b470b8ec9e5908d224c2fbf33cadda5adf /avmedia/source/vlc | |
parent | addb63fa8ac9fa1a29a00e886e7ae177b604494c (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I58410209f32f988f258a588364e0b037c2790211
Diffstat (limited to 'avmedia/source/vlc')
-rw-r--r-- | avmedia/source/vlc/vlcmanager.cxx | 2 | ||||
-rw-r--r-- | avmedia/source/vlc/vlcplayer.cxx | 2 | ||||
-rw-r--r-- | avmedia/source/vlc/vlcuno.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/avmedia/source/vlc/vlcmanager.cxx b/avmedia/source/vlc/vlcmanager.cxx index 296c35011a42..b3c922488791 100644 --- a/avmedia/source/vlc/vlcmanager.cxx +++ b/avmedia/source/vlc/vlcmanager.cxx @@ -101,7 +101,7 @@ uno::Reference< media::XPlayer > SAL_CALL Manager::createPlayer( const rtl::OUSt VLCPlayer* pPlayer( new VLCPlayer( mURL, *mInstance, mEventHandler /*, mxMgr */ ) ); - mPlayer = uno::Reference< media::XPlayer >( pPlayer ); + mPlayer.set( pPlayer ); return mPlayer; } diff --git a/avmedia/source/vlc/vlcplayer.cxx b/avmedia/source/vlc/vlcplayer.cxx index 1318a181abb7..99f3634e0328 100644 --- a/avmedia/source/vlc/vlcplayer.cxx +++ b/avmedia/source/vlc/vlcplayer.cxx @@ -245,7 +245,7 @@ uno::Reference< css::media::XFrameGrabber > SAL_CALL VLCPlayer::createFrameGrabb if ( !mrFrameGrabber.is() ) { VLCFrameGrabber *frameGrabber = new VLCFrameGrabber( mEventHandler, mUrl ); - mrFrameGrabber = uno::Reference< css::media::XFrameGrabber >( frameGrabber ); + mrFrameGrabber.set( frameGrabber ); } return mrFrameGrabber; diff --git a/avmedia/source/vlc/vlcuno.cxx b/avmedia/source/vlc/vlcuno.cxx index 67b0c0c92307..bfa2c91fd259 100644 --- a/avmedia/source/vlc/vlcuno.cxx +++ b/avmedia/source/vlc/vlcuno.cxx @@ -56,7 +56,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL avmediavlc_component_getFactory( if( rtl_str_compare( pImplName, IMPL_NAME ) == 0 ) { const OUString aServiceName( SERVICE_NAME ); - xFactory = uno::Reference< lang::XSingleServiceFactory >( ::cppu::createSingleFactory( + xFactory.set( ::cppu::createSingleFactory( static_cast< lang::XMultiServiceFactory* >( pServiceManager ), IMPL_NAME, create_MediaPlayer, uno::Sequence< OUString >( &aServiceName, 1 ) ) ); } |