diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-11-15 08:43:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-15 10:13:08 +0000 |
commit | 8e234c5b7d5bae66c544e581bee5770f3f83dd81 (patch) | |
tree | 7d78f03ce2231de4f727d1135449aeb8cba74e99 /accessibility | |
parent | 3bdd176731c351638f541a37b94094124f3c9f52 (diff) |
use initialiser syntax for Sequence<OUString>
replaced using the script:
git grep -lP 'Sequence.*OUString.*\(1\)'
| xargs perl -0777 -pi
-e "s/Sequence< OUString > (\w+)\(1\);
.*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g"
Change-Id: I23688a91562051a8eed11fc2a85599545c285c34
Reviewed-on: https://gerrit.libreoffice.org/19967
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'accessibility')
19 files changed, 19 insertions, 38 deletions
diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx index 74fe20044f2b..b020513c7228 100644 --- a/accessibility/source/extended/accessibletabbar.cxx +++ b/accessibility/source/extended/accessibletabbar.cxx @@ -208,8 +208,7 @@ namespace accessibility Sequence< OUString > AccessibleTabBar::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleTabBar"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBar" }; return aNames; } diff --git a/accessibility/source/extended/accessibletabbarpage.cxx b/accessibility/source/extended/accessibletabbarpage.cxx index 0c1479f86337..8ce47ce1a61c 100644 --- a/accessibility/source/extended/accessibletabbarpage.cxx +++ b/accessibility/source/extended/accessibletabbarpage.cxx @@ -240,8 +240,7 @@ namespace accessibility Sequence< OUString > AccessibleTabBarPage::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleTabBarPage"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBarPage" }; return aNames; } diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx index 95aaa42f802d..cc0fd4183abf 100644 --- a/accessibility/source/extended/accessibletabbarpagelist.cxx +++ b/accessibility/source/extended/accessibletabbarpagelist.cxx @@ -390,8 +390,7 @@ namespace accessibility Sequence< OUString > AccessibleTabBarPageList::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleTabBarPageList"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBarPageList" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblebutton.cxx b/accessibility/source/standard/vclxaccessiblebutton.cxx index 8f68773479b0..62c8a1804f66 100644 --- a/accessibility/source/standard/vclxaccessiblebutton.cxx +++ b/accessibility/source/standard/vclxaccessiblebutton.cxx @@ -133,8 +133,7 @@ OUString VCLXAccessibleButton::getImplementationName() throw (RuntimeException, Sequence< OUString > VCLXAccessibleButton::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleButton"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleButton" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblecheckbox.cxx b/accessibility/source/standard/vclxaccessiblecheckbox.cxx index 377fe9a96d1d..bc77d1cf4227 100644 --- a/accessibility/source/standard/vclxaccessiblecheckbox.cxx +++ b/accessibility/source/standard/vclxaccessiblecheckbox.cxx @@ -173,8 +173,7 @@ OUString VCLXAccessibleCheckBox::getImplementationName() throw (RuntimeException Sequence< OUString > VCLXAccessibleCheckBox::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleCheckBox"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleCheckBox" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx index 0f02b3ada913..26d1381caa7a 100644 --- a/accessibility/source/standard/vclxaccessibleedit.cxx +++ b/accessibility/source/standard/vclxaccessibleedit.cxx @@ -190,8 +190,7 @@ OUString VCLXAccessibleEdit::getImplementationName() throw (RuntimeException, st Sequence< OUString > VCLXAccessibleEdit::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleEdit"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleEdit" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx b/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx index 39e9791ba300..8b7c42e70ac8 100644 --- a/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx +++ b/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx @@ -64,8 +64,7 @@ OUString VCLXAccessibleFixedHyperlink::getImplementationName() throw (uno::Runti uno::Sequence< OUString > VCLXAccessibleFixedHyperlink::getSupportedServiceNames() throw (uno::RuntimeException, std::exception) { - uno::Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleFixedHyperlink"; + uno::Sequence< OUString > aNames { "com.sun.star.awt.AccessibleFixedHyperlink" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblefixedtext.cxx b/accessibility/source/standard/vclxaccessiblefixedtext.cxx index e79718577bbd..74d3db4c4eb9 100644 --- a/accessibility/source/standard/vclxaccessiblefixedtext.cxx +++ b/accessibility/source/standard/vclxaccessiblefixedtext.cxx @@ -76,8 +76,7 @@ OUString VCLXAccessibleFixedText::getImplementationName() throw (RuntimeExceptio Sequence< OUString > VCLXAccessibleFixedText::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleFixedText"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleFixedText" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblemenu.cxx b/accessibility/source/standard/vclxaccessiblemenu.cxx index 80758f805a6e..bd51d096b55c 100644 --- a/accessibility/source/standard/vclxaccessiblemenu.cxx +++ b/accessibility/source/standard/vclxaccessiblemenu.cxx @@ -98,8 +98,7 @@ OUString VCLXAccessibleMenu::getImplementationName() throw (RuntimeException, st Sequence< OUString > VCLXAccessibleMenu::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleMenu"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleMenu" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblemenubar.cxx b/accessibility/source/standard/vclxaccessiblemenubar.cxx index 5f64d999fb05..10340f79ad86 100644 --- a/accessibility/source/standard/vclxaccessiblemenubar.cxx +++ b/accessibility/source/standard/vclxaccessiblemenubar.cxx @@ -138,8 +138,7 @@ OUString VCLXAccessibleMenuBar::getImplementationName() throw (RuntimeException, Sequence< OUString > VCLXAccessibleMenuBar::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleMenuBar"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleMenuBar" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblemenuitem.cxx b/accessibility/source/standard/vclxaccessiblemenuitem.cxx index 6a257faff6e0..a13a9f20b2e3 100644 --- a/accessibility/source/standard/vclxaccessiblemenuitem.cxx +++ b/accessibility/source/standard/vclxaccessiblemenuitem.cxx @@ -171,8 +171,7 @@ OUString VCLXAccessibleMenuItem::getImplementationName() throw (RuntimeException Sequence< OUString > VCLXAccessibleMenuItem::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleMenuItem"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleMenuItem" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblemenuseparator.cxx b/accessibility/source/standard/vclxaccessiblemenuseparator.cxx index c0ba53046f89..0ceda9f1bcb5 100644 --- a/accessibility/source/standard/vclxaccessiblemenuseparator.cxx +++ b/accessibility/source/standard/vclxaccessiblemenuseparator.cxx @@ -56,8 +56,7 @@ OUString VCLXAccessibleMenuSeparator::getImplementationName() throw (RuntimeExce Sequence< OUString > VCLXAccessibleMenuSeparator::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleMenuSeparator"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleMenuSeparator" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblepopupmenu.cxx b/accessibility/source/standard/vclxaccessiblepopupmenu.cxx index b0b394151ae5..ee97f1b96d91 100644 --- a/accessibility/source/standard/vclxaccessiblepopupmenu.cxx +++ b/accessibility/source/standard/vclxaccessiblepopupmenu.cxx @@ -63,8 +63,7 @@ OUString VCLXAccessiblePopupMenu::getImplementationName() throw (RuntimeExceptio Sequence< OUString > VCLXAccessiblePopupMenu::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessiblePopupMenu"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessiblePopupMenu" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessibleradiobutton.cxx b/accessibility/source/standard/vclxaccessibleradiobutton.cxx index 1881c8fb303a..de870fc4a062 100644 --- a/accessibility/source/standard/vclxaccessibleradiobutton.cxx +++ b/accessibility/source/standard/vclxaccessibleradiobutton.cxx @@ -148,8 +148,7 @@ OUString VCLXAccessibleRadioButton::getImplementationName() throw (RuntimeExcept Sequence< OUString > VCLXAccessibleRadioButton::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleRadioButton"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleRadioButton" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblescrollbar.cxx b/accessibility/source/standard/vclxaccessiblescrollbar.cxx index 76e58a67537d..91b528cb3d4e 100644 --- a/accessibility/source/standard/vclxaccessiblescrollbar.cxx +++ b/accessibility/source/standard/vclxaccessiblescrollbar.cxx @@ -113,8 +113,7 @@ OUString VCLXAccessibleScrollBar::getImplementationName() throw (RuntimeExceptio Sequence< OUString > VCLXAccessibleScrollBar::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleScrollBar"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleScrollBar" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblestatusbar.cxx b/accessibility/source/standard/vclxaccessiblestatusbar.cxx index 701e62f9ac9a..a2e4053c8b70 100644 --- a/accessibility/source/standard/vclxaccessiblestatusbar.cxx +++ b/accessibility/source/standard/vclxaccessiblestatusbar.cxx @@ -290,8 +290,7 @@ OUString VCLXAccessibleStatusBar::getImplementationName() throw (RuntimeExceptio Sequence< OUString > VCLXAccessibleStatusBar::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleStatusBar"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleStatusBar" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx index 9179ae9486c5..262da8c1cb15 100644 --- a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx +++ b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx @@ -245,8 +245,7 @@ sal_Bool VCLXAccessibleStatusBarItem::supportsService( const OUString& rServiceN Sequence< OUString > VCLXAccessibleStatusBarItem::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleStatusBarItem"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleStatusBarItem" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessibletabcontrol.cxx b/accessibility/source/standard/vclxaccessibletabcontrol.cxx index 417b898151ff..2e7c7aeb9f91 100644 --- a/accessibility/source/standard/vclxaccessibletabcontrol.cxx +++ b/accessibility/source/standard/vclxaccessibletabcontrol.cxx @@ -349,8 +349,7 @@ OUString VCLXAccessibleTabControl::getImplementationName() throw (RuntimeExcepti Sequence< OUString > VCLXAccessibleTabControl::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleTabControl"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabControl" }; return aNames; } diff --git a/accessibility/source/standard/vclxaccessibletabpage.cxx b/accessibility/source/standard/vclxaccessibletabpage.cxx index f279e7dc0d22..8b5b5e702232 100644 --- a/accessibility/source/standard/vclxaccessibletabpage.cxx +++ b/accessibility/source/standard/vclxaccessibletabpage.cxx @@ -277,8 +277,7 @@ sal_Bool VCLXAccessibleTabPage::supportsService( const OUString& rServiceName ) Sequence< OUString > VCLXAccessibleTabPage::getSupportedServiceNames() throw (RuntimeException, std::exception) { - Sequence< OUString > aNames(1); - aNames[0] = "com.sun.star.awt.AccessibleTabPage"; + Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabPage" }; return aNames; } |