diff options
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" }; } |