Kaydet (Commit) 9742ee52 authored tarafından Arnold Dumas's avatar Arnold Dumas Kaydeden (comit) Stephan Bergmann

tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor

Change-Id: I6fc54accb6c08e34909db2131e0abc84d32da2f5
Reviewed-on: https://gerrit.libreoffice.org/26763Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 6951f28b
...@@ -274,8 +274,7 @@ sal_Bool SAL_CALL AccessibleGridControlBase::supportsService( ...@@ -274,8 +274,7 @@ sal_Bool SAL_CALL AccessibleGridControlBase::supportsService(
Sequence< OUString > SAL_CALL AccessibleGridControlBase::getSupportedServiceNames() Sequence< OUString > SAL_CALL AccessibleGridControlBase::getSupportedServiceNames()
throw ( uno::RuntimeException, std::exception ) throw ( uno::RuntimeException, std::exception )
{ {
const OUString aServiceName( "com.sun.star.accessibility.AccessibleContext" ); return { "com.sun.star.accessibility.AccessibleContext" };
return Sequence< OUString >( &aServiceName, 1 );
} }
// internal virtual methods // internal virtual methods
......
...@@ -202,8 +202,7 @@ namespace accessibility ...@@ -202,8 +202,7 @@ namespace accessibility
Sequence< OUString > AccessibleTabBar::getSupportedServiceNames() throw (RuntimeException, std::exception) Sequence< OUString > AccessibleTabBar::getSupportedServiceNames() throw (RuntimeException, std::exception)
{ {
Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBar" }; return { "com.sun.star.awt.AccessibleTabBar" };
return aNames;
} }
......
...@@ -230,8 +230,7 @@ namespace accessibility ...@@ -230,8 +230,7 @@ namespace accessibility
Sequence< OUString > AccessibleTabBarPage::getSupportedServiceNames() throw (RuntimeException, std::exception) Sequence< OUString > AccessibleTabBarPage::getSupportedServiceNames() throw (RuntimeException, std::exception)
{ {
Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBarPage" }; return { "com.sun.star.awt.AccessibleTabBarPage" };
return aNames;
} }
......
...@@ -378,8 +378,7 @@ namespace accessibility ...@@ -378,8 +378,7 @@ namespace accessibility
Sequence< OUString > AccessibleTabBarPageList::getSupportedServiceNames() throw (RuntimeException, std::exception) Sequence< OUString > AccessibleTabBarPageList::getSupportedServiceNames() throw (RuntimeException, std::exception)
{ {
Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBarPageList" }; return { "com.sun.star.awt.AccessibleTabBarPageList" };
return aNames;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment