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 /stoc/source/uriproc | |
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 'stoc/source/uriproc')
5 files changed, 5 insertions, 10 deletions
diff --git a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx index 0737c8544f17..3dde5b31539c 100644 --- a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx +++ b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx @@ -88,8 +88,7 @@ sal_Bool Translator::supportsService(OUString const & serviceName) css::uno::Sequence< OUString > Translator::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.uri.ExternalUriReferenceTranslator"; + css::uno::Sequence< OUString > s { "com.sun.star.uri.ExternalUriReferenceTranslator" }; return s; } diff --git a/stoc/source/uriproc/UriReferenceFactory.cxx b/stoc/source/uriproc/UriReferenceFactory.cxx index 2c5a34a415fc..e8d3c6acb86f 100644 --- a/stoc/source/uriproc/UriReferenceFactory.cxx +++ b/stoc/source/uriproc/UriReferenceFactory.cxx @@ -321,8 +321,7 @@ sal_Bool Factory::supportsService(OUString const & serviceName) css::uno::Sequence< OUString > Factory::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.uri.UriReferenceFactory"; + css::uno::Sequence< OUString > s { "com.sun.star.uri.UriReferenceFactory" }; return s; } diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx index ac0ceececa94..263795825bc5 100644 --- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx +++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx @@ -193,8 +193,7 @@ sal_Bool Parser::supportsService(OUString const & serviceName) css::uno::Sequence< OUString > Parser::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand"; + css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand" }; return s; } diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx index b6811f8a27c0..b2f6c6da2b3a 100644 --- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx +++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx @@ -413,8 +413,7 @@ sal_Bool Parser::supportsService(OUString const & serviceName) css::uno::Sequence< OUString > Parser::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript"; + css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript" }; return s; } diff --git a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx index 48f36f79215c..5bb9fb09b868 100644 --- a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx +++ b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx @@ -88,8 +88,7 @@ sal_Bool Factory::supportsService(OUString const & serviceName) css::uno::Sequence< OUString > Factory::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.uri.VndSunStarPkgUrlReferenceFactory"; + css::uno::Sequence< OUString > s { "com.sun.star.uri.VndSunStarPkgUrlReferenceFactory" }; return s; } |