[Libreoffice-commits] core.git: editeng/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 15 18:51:35 UTC 2019
editeng/source/accessibility/AccessibleImageBullet.cxx | 4 +---
editeng/source/uno/unonrule.cxx | 4 +---
editeng/source/uno/unotext.cxx | 8 +++-----
3 files changed, 5 insertions(+), 11 deletions(-)
New commits:
commit 39921c1657d0d131ab7ed6c5490052f53bb764cb
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Thu Aug 15 20:02:41 2019 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Thu Aug 15 20:49:30 2019 +0200
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in editeng
Change-Id: If4b7e216edf7d589c59f50e6d0ef91d669af2d15
Reviewed-on: https://gerrit.libreoffice.org/77542
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/editeng/source/accessibility/AccessibleImageBullet.cxx b/editeng/source/accessibility/AccessibleImageBullet.cxx
index b596e292cb0d..3c9f7a0fc89b 100644
--- a/editeng/source/accessibility/AccessibleImageBullet.cxx
+++ b/editeng/source/accessibility/AccessibleImageBullet.cxx
@@ -359,9 +359,7 @@ namespace accessibility
uno::Sequence< OUString > SAL_CALL AccessibleImageBullet::getSupportedServiceNames()
{
-
- const OUString sServiceName ("com.sun.star.accessibility.AccessibleContext");
- return uno::Sequence< OUString > (&sServiceName, 1);
+ return uno::Sequence< OUString >{ "com.sun.star.accessibility.AccessibleContext" };
}
void AccessibleImageBullet::SetIndexInParent( sal_Int32 nIndex )
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index 3f2f344d9179..c9df5b169448 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -165,9 +165,7 @@ sal_Bool SAL_CALL SvxUnoNumberingRules::supportsService( const OUString& Service
Sequence< OUString > SAL_CALL SvxUnoNumberingRules::getSupportedServiceNames( )
{
- OUString aService( "com.sun.star.text.NumberingRules" );
- Sequence< OUString > aSeq( &aService, 1 );
- return aSeq;
+ return Sequence< OUString > { "com.sun.star.text.NumberingRules" };
}
Sequence<beans::PropertyValue> SvxUnoNumberingRules::getNumberingRuleByIndex(sal_Int32 nIndex) const
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index fc83f3fff196..74d453939ce5 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -1442,11 +1442,9 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextRangeBase::getSupportedServiceNames
uno::Sequence< OUString > SvxUnoTextRangeBase::getSupportedServiceNames_Static()
{
- uno::Sequence< OUString > aSeq(3);
- aSeq[0] = "com.sun.star.style.CharacterProperties";
- aSeq[1] = "com.sun.star.style.CharacterPropertiesComplex";
- aSeq[2] = "com.sun.star.style.CharacterPropertiesAsian";
- return aSeq;
+ return uno::Sequence< OUString >{ "com.sun.star.style.CharacterProperties",
+ "com.sun.star.style.CharacterPropertiesComplex",
+ "com.sun.star.style.CharacterPropertiesAsian" };
}
// XTextRangeCompare
More information about the Libreoffice-commits
mailing list