[Libreoffice-commits] core.git: accessibility/source
Arnold Dumas
arnold at dumas.at
Wed Jun 29 14:45:18 UTC 2016
accessibility/source/extended/AccessibleGridControlBase.cxx | 3 +--
accessibility/source/extended/accessibletabbar.cxx | 3 +--
accessibility/source/extended/accessibletabbarpage.cxx | 3 +--
accessibility/source/extended/accessibletabbarpagelist.cxx | 3 +--
4 files changed, 4 insertions(+), 8 deletions(-)
New commits:
commit 9742ee52a842653f7118c4ad8e38c02a6e43e97a
Author: Arnold Dumas <arnold at dumas.at>
Date: Wed Jun 29 14:05:05 2016 +0200
tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: I6fc54accb6c08e34909db2131e0abc84d32da2f5
Reviewed-on: https://gerrit.libreoffice.org/26763
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/accessibility/source/extended/AccessibleGridControlBase.cxx b/accessibility/source/extended/AccessibleGridControlBase.cxx
index 088d56f..74d4214 100644
--- a/accessibility/source/extended/AccessibleGridControlBase.cxx
+++ b/accessibility/source/extended/AccessibleGridControlBase.cxx
@@ -274,8 +274,7 @@ sal_Bool SAL_CALL AccessibleGridControlBase::supportsService(
Sequence< OUString > SAL_CALL AccessibleGridControlBase::getSupportedServiceNames()
throw ( uno::RuntimeException, std::exception )
{
- const OUString aServiceName( "com.sun.star.accessibility.AccessibleContext" );
- return Sequence< OUString >( &aServiceName, 1 );
+ return { "com.sun.star.accessibility.AccessibleContext" };
}
// internal virtual methods
diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx
index 750a376..26ac2e7 100644
--- a/accessibility/source/extended/accessibletabbar.cxx
+++ b/accessibility/source/extended/accessibletabbar.cxx
@@ -202,8 +202,7 @@ namespace accessibility
Sequence< OUString > AccessibleTabBar::getSupportedServiceNames() throw (RuntimeException, std::exception)
{
- Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBar" };
- return aNames;
+ return { "com.sun.star.awt.AccessibleTabBar" };
}
diff --git a/accessibility/source/extended/accessibletabbarpage.cxx b/accessibility/source/extended/accessibletabbarpage.cxx
index c1d0a48..9d50f48 100644
--- a/accessibility/source/extended/accessibletabbarpage.cxx
+++ b/accessibility/source/extended/accessibletabbarpage.cxx
@@ -230,8 +230,7 @@ namespace accessibility
Sequence< OUString > AccessibleTabBarPage::getSupportedServiceNames() throw (RuntimeException, std::exception)
{
- Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBarPage" };
- return aNames;
+ return { "com.sun.star.awt.AccessibleTabBarPage" };
}
diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx
index 17e1fe9..9e80a3f 100644
--- a/accessibility/source/extended/accessibletabbarpagelist.cxx
+++ b/accessibility/source/extended/accessibletabbarpagelist.cxx
@@ -378,8 +378,7 @@ namespace accessibility
Sequence< OUString > AccessibleTabBarPageList::getSupportedServiceNames() throw (RuntimeException, std::exception)
{
- Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBarPageList" };
- return aNames;
+ return { "com.sun.star.awt.AccessibleTabBarPageList" };
}
More information about the Libreoffice-commits
mailing list