diff options
author | DuP-491 <leolovelucia@gmail.com> | 2020-12-22 22:32:05 +0530 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-01-01 17:31:48 +0100 |
commit | a58333410cdfb3a9e6ef82710534f2422a85aeea (patch) | |
tree | 5b58ed41779252b105f6a3978fb93d0ceb4c1d96 /sd/source | |
parent | 51092f2baafab6153fead06f5e22575ef3b9fe95 (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: I225e33c5953eee57b76a819b347051758ad5b80e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108211
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/filter/html/HtmlOptionsDialog.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unolayer.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 3 |
3 files changed, 4 insertions, 7 deletions
diff --git a/sd/source/filter/html/HtmlOptionsDialog.cxx b/sd/source/filter/html/HtmlOptionsDialog.cxx index 5db49c2af647..13e5cea52cca 100644 --- a/sd/source/filter/html/HtmlOptionsDialog.cxx +++ b/sd/source/filter/html/HtmlOptionsDialog.cxx @@ -117,8 +117,7 @@ sal_Bool SAL_CALL SdHtmlOptionsDialog::supportsService( const OUString& rService Sequence< OUString > SAL_CALL SdHtmlOptionsDialog::getSupportedServiceNames() { - Sequence< OUString > aRet { "com.sun.star.ui.dialog.FilterOptionsDialog" }; - return aRet; + return { "com.sun.star.ui.dialog.FilterOptionsDialog" }; } // XPropertyAccess diff --git a/sd/source/ui/unoidl/unolayer.cxx b/sd/source/ui/unoidl/unolayer.cxx index f042dc008543..18e92d383038 100644 --- a/sd/source/ui/unoidl/unolayer.cxx +++ b/sd/source/ui/unoidl/unolayer.cxx @@ -410,13 +410,12 @@ OUString SAL_CALL SdLayerManager::getImplementationName() sal_Bool SAL_CALL SdLayerManager::supportsService( const OUString& ServiceName ) { - return cppu::supportsService( this, ServiceName ); + return cppu::supportsService( this, ServiceName ); } uno::Sequence< OUString > SAL_CALL SdLayerManager::getSupportedServiceNames() { - uno::Sequence< OUString > aSeq { "com.sun.star.drawing.LayerManager" }; - return aSeq; + return {"com.sun.star.drawing.LayerManager"}; } // XLayerManager diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 4a4f09cd50e3..052460495200 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -2009,8 +2009,7 @@ sal_Bool SAL_CALL SdPageLinkTargets::supportsService( const OUString& ServiceNam Sequence< OUString > SAL_CALL SdPageLinkTargets::getSupportedServiceNames() { - Sequence< OUString > aSeq { "com.sun.star.document.LinkTargets" }; - return aSeq; + return { "com.sun.star.document.LinkTargets" }; } // SdDrawPage |