From b8f02637131fcfa499a6397914fdf4687c88053d Mon Sep 17 00:00:00 2001 From: Mesut Çifci Date: Wed, 15 Jan 2020 11:33:29 +0300 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor Change-Id: Ib58c66590c60175d7984af55d23b7c55a6a2383e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86828 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sfx2/source/appl/appinit.cxx | 3 +-- sfx2/source/appl/macroloader.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx index 472a72e56223..c1584878aaca 100644 --- a/sfx2/source/appl/appinit.cxx +++ b/sfx2/source/appl/appinit.cxx @@ -124,8 +124,7 @@ Sequence< OUString > SAL_CALL SfxTerminateListener_Impl::getSupportedServiceName // The desktop must know, which listener will terminate the SfxApplication in real ! // It must call this special listener as last one ... otherwise we shutdown the SfxApplication BEFORE other listener // can react ... - Sequence< OUString > lNames { "com.sun.star.frame.TerminateListener" }; - return lNames; + return { "com.sun.star.frame.TerminateListener" }; } diff --git a/sfx2/source/appl/macroloader.cxx b/sfx2/source/appl/macroloader.cxx index 912b555c829b..46090f712665 100644 --- a/sfx2/source/appl/macroloader.cxx +++ b/sfx2/source/appl/macroloader.cxx @@ -65,8 +65,7 @@ sal_Bool SAL_CALL SfxMacroLoader::supportsService(OUString const & ServiceName) css::uno::Sequence SAL_CALL SfxMacroLoader::getSupportedServiceNames() { - css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ProtocolHandler" }; - return aSeq; + return { "com.sun.star.frame.ProtocolHandler" }; } SfxObjectShell* SfxMacroLoader::GetObjectShell_Impl() -- cgit