diff options
author | Mehmet Emin Başoğlu <mehmeteminbasoglu@hotmail.com> | 2020-01-27 16:37:54 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@collabora.com> | 2020-01-27 22:14:11 +0100 |
commit | 4939a8905207c0aa044156dc583e4cdd6e7eb63e (patch) | |
tree | 55b4d388af86c4e000f7ed4cf2cf206f3a238e60 | |
parent | d39ad9cdd5f02b01d4d7b747a9c20168cbe915eb (diff) |
tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Iffb8512c530b33f87076aec9f85b45219c7d07e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87528
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
-rw-r--r-- | extensions/source/propctrlr/formcontroller.cxx | 6 | ||||
-rw-r--r-- | remotebridges/source/unourl_resolver/unourl_resolver.cxx | 3 | ||||
-rw-r--r-- | svx/source/unodraw/unobtabl.cxx | 3 | ||||
-rw-r--r-- | svx/source/unodraw/unodtabl.cxx | 3 | ||||
-rw-r--r-- | svx/source/unodraw/unogtabl.cxx | 3 | ||||
-rw-r--r-- | svx/source/unodraw/unohtabl.cxx | 3 | ||||
-rw-r--r-- | svx/source/unodraw/unottabl.cxx | 3 | ||||
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 3 |
8 files changed, 9 insertions, 18 deletions
diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx index 5ac5f7fed1fb..b9eb032776b0 100644 --- a/extensions/source/propctrlr/formcontroller.cxx +++ b/extensions/source/propctrlr/formcontroller.cxx @@ -127,8 +127,7 @@ namespace pcr Sequence< OUString > FormController::getSupportedServiceNames_static( ) { - Sequence< OUString > aSupported { "com.sun.star.form.PropertyBrowserController" }; - return aSupported; + return { "com.sun.star.form.PropertyBrowserController" }; } @@ -254,8 +253,7 @@ namespace pcr Sequence< OUString > DialogController::getSupportedServiceNames_static( ) { - Sequence< OUString > aSupported { "com.sun.star.awt.PropertyBrowserController" }; - return aSupported; + return { "com.sun.star.awt.PropertyBrowserController" }; } diff --git a/remotebridges/source/unourl_resolver/unourl_resolver.cxx b/remotebridges/source/unourl_resolver/unourl_resolver.cxx index 4339b30a6dab..d4eea66c0269 100644 --- a/remotebridges/source/unourl_resolver/unourl_resolver.cxx +++ b/remotebridges/source/unourl_resolver/unourl_resolver.cxx @@ -46,8 +46,7 @@ namespace unourl_resolver static Sequence< OUString > resolver_getSupportedServiceNames() { - Sequence< OUString > seqNames { "com.sun.star.bridge.UnoUrlResolver" }; - return seqNames; + return { "com.sun.star.bridge.UnoUrlResolver" }; } static OUString resolver_getImplementationName() diff --git a/svx/source/unodraw/unobtabl.cxx b/svx/source/unodraw/unobtabl.cxx index f94369907f73..4d9c5ded9bfd 100644 --- a/svx/source/unodraw/unobtabl.cxx +++ b/svx/source/unodraw/unobtabl.cxx @@ -84,8 +84,7 @@ OUString SAL_CALL SvxUnoBitmapTable::getImplementationName() uno::Sequence< OUString > SAL_CALL SvxUnoBitmapTable::getSupportedServiceNames( ) { - uno::Sequence<OUString> aSNS { "com.sun.star.drawing.BitmapTable" }; - return aSNS; + return { "com.sun.star.drawing.BitmapTable" }; } NameOrIndex* SvxUnoBitmapTable::createItem() const diff --git a/svx/source/unodraw/unodtabl.cxx b/svx/source/unodraw/unodtabl.cxx index f285ac30c7d1..9cf86c223894 100644 --- a/svx/source/unodraw/unodtabl.cxx +++ b/svx/source/unodraw/unodtabl.cxx @@ -64,8 +64,7 @@ OUString SAL_CALL SvxUnoDashTable::getImplementationName() uno::Sequence< OUString > SAL_CALL SvxUnoDashTable::getSupportedServiceNames( ) { - uno::Sequence<OUString> aSNS { "com.sun.star.drawing.DashTable" }; - return aSNS; + return { "com.sun.star.drawing.DashTable" }; } NameOrIndex* SvxUnoDashTable::createItem() const diff --git a/svx/source/unodraw/unogtabl.cxx b/svx/source/unodraw/unogtabl.cxx index 4b3842c9d026..d7b66ef76513 100644 --- a/svx/source/unodraw/unogtabl.cxx +++ b/svx/source/unodraw/unogtabl.cxx @@ -63,8 +63,7 @@ OUString SAL_CALL SvxUnoGradientTable::getImplementationName() uno::Sequence< OUString > SAL_CALL SvxUnoGradientTable::getSupportedServiceNames( ) { - uno::Sequence<OUString> aSNS { "com.sun.star.drawing.GradientTable" }; - return aSNS; + return { "com.sun.star.drawing.GradientTable" }; } diff --git a/svx/source/unodraw/unohtabl.cxx b/svx/source/unodraw/unohtabl.cxx index ec114ba91b10..9adb450007e2 100644 --- a/svx/source/unodraw/unohtabl.cxx +++ b/svx/source/unodraw/unohtabl.cxx @@ -63,8 +63,7 @@ OUString SAL_CALL SvxUnoHatchTable::getImplementationName() uno::Sequence< OUString > SAL_CALL SvxUnoHatchTable::getSupportedServiceNames( ) { - uno::Sequence<OUString> aSNS { "com.sun.star.drawing.HatchTable" }; - return aSNS; + return { "com.sun.star.drawing.HatchTable" }; } NameOrIndex* SvxUnoHatchTable::createItem() const diff --git a/svx/source/unodraw/unottabl.cxx b/svx/source/unodraw/unottabl.cxx index 9653f36360bb..8a9e48437c5c 100644 --- a/svx/source/unodraw/unottabl.cxx +++ b/svx/source/unodraw/unottabl.cxx @@ -63,8 +63,7 @@ OUString SAL_CALL SvxUnoTransGradientTable::getImplementationName() uno::Sequence< OUString > SAL_CALL SvxUnoTransGradientTable::getSupportedServiceNames( ) { - uno::Sequence<OUString> aSNS { "com.sun.star.drawing.TransparencyGradientTable" }; - return aSNS; + return { "com.sun.star.drawing.TransparencyGradientTable" }; } NameOrIndex* SvxUnoTransGradientTable::createItem() const diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx index df9f34001441..aca43c107e77 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -2464,8 +2464,7 @@ OUString _getImplementationName() { uno::Sequence< OUString > _getSupportedServiceNames() { - uno::Sequence< OUString > s { "com.sun.star.rdf.Repository" }; - return s; + return { "com.sun.star.rdf.Repository" }; } uno::Reference< uno::XInterface > _create( |