[Libreoffice-commits] core.git: configmgr/source
Canberk TURAN (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jan 29 21:10:52 UTC 2020
configmgr/source/configurationprovider.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit a654caf5dbca9635d4e7f89eb6d125ea98626da3
Author: Canberk TURAN <canberkkturann at gmail.com>
AuthorDate: Mon Jan 27 14:54:18 2020 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Wed Jan 29 22:10:18 2020 +0100
tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor
Changed to one-line return
Change-Id: I2ce55ff3c7f218823418ed623b03e6a4fcbc0d2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87515
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
diff --git a/configmgr/source/configurationprovider.cxx b/configmgr/source/configurationprovider.cxx
index 6cbde63f2000..467d73bfdc23 100644
--- a/configmgr/source/configurationprovider.cxx
+++ b/configmgr/source/configurationprovider.cxx
@@ -268,10 +268,7 @@ Service::createInstanceWithArguments(
css::uno::Sequence< OUString > Service::getAvailableServiceNames()
{
- css::uno::Sequence< OUString > names(2);
- names[0] = accessServiceName;
- names[1] = updateAccessServiceName;
- return names;
+ return { accessServiceName, updateAccessServiceName };
}
void Service::refresh() {
More information about the Libreoffice-commits
mailing list