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>
This commit is contained in:
Arnold Dumas 2016-06-29 14:05:05 +02:00 committed by Stephan Bergmann
parent 6951f28bba
commit 9742ee52a8
4 changed files with 4 additions and 8 deletions

View File

@ -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

View File

@ -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" };
}

View File

@ -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" };
}

View File

@ -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" };
}