From 7f01cf67f8181836430fd3c8433e8bf2f55c95f2 Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Mon, 1 Aug 2016 14:05:42 +0300 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor in SoundHandler, FrameGrabber, Manager, MissingPluginInstaller, and several classes in 'avmedia' module. Change-Id: I9ab42d2ef95f3b0c724a7be9eb9e2389336a6f38 Reviewed-on: https://gerrit.libreoffice.org/27777 Tested-by: Jenkins Reviewed-by: Noel Grandin --- avmedia/source/vlc/vlcframegrabber.cxx | 3 +-- avmedia/source/vlc/vlcmanager.cxx | 3 +-- avmedia/source/vlc/vlcplayer.cxx | 3 +-- avmedia/source/vlc/vlcwindow.cxx | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'avmedia/source/vlc') diff --git a/avmedia/source/vlc/vlcframegrabber.cxx b/avmedia/source/vlc/vlcframegrabber.cxx index 45189d7e0000..beb0ed9a84ad 100644 --- a/avmedia/source/vlc/vlcframegrabber.cxx +++ b/avmedia/source/vlc/vlcframegrabber.cxx @@ -126,8 +126,7 @@ sal_Bool SAL_CALL VLCFrameGrabber::supportsService( const ::rtl::OUString& servi ::uno::Sequence< ::rtl::OUString > SAL_CALL VLCFrameGrabber::getSupportedServiceNames() throw ( css::uno::RuntimeException, std::exception ) { - ::uno::Sequence< OUString > aRet { AVMEDIA_VLC_GRABBER_SERVICENAME }; - return aRet; + return { AVMEDIA_VLC_GRABBER_SERVICENAME }; } } diff --git a/avmedia/source/vlc/vlcmanager.cxx b/avmedia/source/vlc/vlcmanager.cxx index 06ad14d08aed..b5819ee40004 100644 --- a/avmedia/source/vlc/vlcmanager.cxx +++ b/avmedia/source/vlc/vlcmanager.cxx @@ -121,8 +121,7 @@ sal_Bool SAL_CALL Manager::supportsService( const rtl::OUString& serviceName ) uno::Sequence< rtl::OUString > SAL_CALL Manager::getSupportedServiceNames() throw (uno::RuntimeException, std::exception) { - ::uno::Sequence< OUString > aRet { VLC_SERVICENAME }; - return aRet; + return { VLC_SERVICENAME }; } } // end namespace vlc diff --git a/avmedia/source/vlc/vlcplayer.cxx b/avmedia/source/vlc/vlcplayer.cxx index 6e1b3b101d73..5a9e94dedcd2 100644 --- a/avmedia/source/vlc/vlcplayer.cxx +++ b/avmedia/source/vlc/vlcplayer.cxx @@ -266,8 +266,7 @@ sal_Bool SAL_CALL VLCPlayer::supportsService( const ::rtl::OUString& serviceName ::uno::Sequence< ::rtl::OUString > SAL_CALL VLCPlayer::getSupportedServiceNames() throw ( css::uno::RuntimeException, std::exception ) { - uno::Sequence< OUString > aRet { AVMEDIA_VLC_PLAYER_SERVICENAME }; - return aRet; + return { AVMEDIA_VLC_PLAYER_SERVICENAME }; } } diff --git a/avmedia/source/vlc/vlcwindow.cxx b/avmedia/source/vlc/vlcwindow.cxx index 3105ebfec5e4..2a4ad61bb27a 100644 --- a/avmedia/source/vlc/vlcwindow.cxx +++ b/avmedia/source/vlc/vlcwindow.cxx @@ -103,8 +103,7 @@ sal_Bool SAL_CALL VLCWindow::supportsService( const ::rtl::OUString& serviceName uno::Sequence< ::rtl::OUString > SAL_CALL VLCWindow::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - uno::Sequence< OUString > aRet { AVMEDIA_VLC_WINDOW_SERVICENAME }; - return aRet; + return { AVMEDIA_VLC_WINDOW_SERVICENAME }; } void SAL_CALL VLCWindow::dispose() throw (uno::RuntimeException, std::exception) -- cgit