summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold Dumas <arnold@dumas.at>2016-06-29 14:05:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-29 14:45:01 +0000
commit9742ee52a842653f7118c4ad8e38c02a6e43e97a (patch)
tree08959b06c12cf23c9f3f75d47884e20ca4e722d2
parent6951f28bbac44b29741089e88f842f124baf317f (diff)
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@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--accessibility/source/extended/AccessibleGridControlBase.cxx3
-rw-r--r--accessibility/source/extended/accessibletabbar.cxx3
-rw-r--r--accessibility/source/extended/accessibletabbarpage.cxx3
-rw-r--r--accessibility/source/extended/accessibletabbarpagelist.cxx3
4 files changed, 4 insertions, 8 deletions
diff --git a/accessibility/source/extended/AccessibleGridControlBase.cxx b/accessibility/source/extended/AccessibleGridControlBase.cxx
index 088d56fcd432..74d421416ea4 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 750a37688a59..26ac2e7a7c14 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 c1d0a48f0182..9d50f4822e0b 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 17e1fe9767cf..9e80a3f7af9f 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" };
}