[Libreoffice-commits] core.git: desktop/source
ekuiitr
jhaekansh80 at gmail.com
Fri Jan 26 07:30:03 UTC 2018
desktop/source/migration/services/jvmfwk.cxx | 3 +--
desktop/source/migration/services/oo3extensionmigration.cxx | 2 +-
desktop/source/migration/services/wordbookmigration.cxx | 2 +-
desktop/source/offacc/acceptor.cxx | 3 +--
4 files changed, 4 insertions(+), 6 deletions(-)
New commits:
commit 155dd4ebec9c38c0c478f648b09045e037818aea
Author: ekuiitr <jhaekansh80 at gmail.com>
Date: Fri Jan 26 00:07:43 2018 +0530
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Idc14e71c732ce031b9bec556401dc84fd0757b6b
Reviewed-on: https://gerrit.libreoffice.org/48636
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/desktop/source/migration/services/jvmfwk.cxx b/desktop/source/migration/services/jvmfwk.cxx
index fc858ec3a039..24e0d50930c0 100644
--- a/desktop/source/migration/services/jvmfwk.cxx
+++ b/desktop/source/migration/services/jvmfwk.cxx
@@ -152,8 +152,7 @@ OUString jvmfwk_getImplementationName()
css::uno::Sequence< OUString > jvmfwk_getSupportedServiceNames()
{
- OUString str_name = SERVICE_NAME;
- return css::uno::Sequence< OUString >( &str_name, 1 );
+ return { SERVICE_NAME };
}
// XServiceInfo
diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx
index 4510c93d2831..b98b90bf559f 100644
--- a/desktop/source/migration/services/oo3extensionmigration.cxx
+++ b/desktop/source/migration/services/oo3extensionmigration.cxx
@@ -63,7 +63,7 @@ OUString OO3ExtensionMigration_getImplementationName()
Sequence< OUString > OO3ExtensionMigration_getSupportedServiceNames()
{
- return Sequence< OUString > { "com.sun.star.migration.Extensions" };
+ return { "com.sun.star.migration.Extensions" };
}
diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx
index ab2264e4d683..8730a8707b29 100644
--- a/desktop/source/migration/services/wordbookmigration.cxx
+++ b/desktop/source/migration/services/wordbookmigration.cxx
@@ -40,7 +40,7 @@ namespace migration
Sequence< OUString > WordbookMigration_getSupportedServiceNames()
{
- return Sequence< OUString > { "com.sun.star.migration.Wordbooks" };
+ return { "com.sun.star.migration.Wordbooks" };
}
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx
index 6244b79e2c4e..40287169ae97 100644
--- a/desktop/source/offacc/acceptor.cxx
+++ b/desktop/source/offacc/acceptor.cxx
@@ -188,8 +188,7 @@ OUString Acceptor::getImplementationName()
}
Sequence<OUString> Acceptor::impl_getSupportedServiceNames()
{
- Sequence<OUString> aSequence { "com.sun.star.office.Acceptor" };
- return aSequence;
+ return { "com.sun.star.office.Acceptor" };
}
Sequence<OUString> Acceptor::getSupportedServiceNames()
{
More information about the Libreoffice-commits
mailing list