summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMesut Çifci <mesutcifci97@gmail.com>2020-01-15 11:33:29 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-01-15 14:54:39 +0100
commitb8f02637131fcfa499a6397914fdf4687c88053d (patch)
tree24e88369d50dbb2ed519d99f6e06dc8c104d455b /sfx2
parent15abfe9ae976a0d940725cdd570facc372981393 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appinit.cxx3
-rw-r--r--sfx2/source/appl/macroloader.cxx3
2 files changed, 2 insertions, 4 deletions
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<OUString> 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()