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 /unoxml | |
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 'unoxml')
-rw-r--r-- | unoxml/source/rdf/CBlankNode.cxx | 3 | ||||
-rw-r--r-- | unoxml/source/rdf/CLiteral.cxx | 3 | ||||
-rw-r--r-- | unoxml/source/rdf/CURI.cxx | 3 | ||||
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 3 |
4 files changed, 4 insertions, 8 deletions
diff --git a/unoxml/source/rdf/CBlankNode.cxx b/unoxml/source/rdf/CBlankNode.cxx index 67280691cdc0..84b35ce5cc90 100644 --- a/unoxml/source/rdf/CBlankNode.cxx +++ b/unoxml/source/rdf/CBlankNode.cxx @@ -125,8 +125,7 @@ OUString SAL_CALL _getImplementationName() { css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames() { - css::uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.rdf.BlankNode"; + css::uno::Sequence< OUString > s { "com.sun.star.rdf.BlankNode" }; return s; } diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx index 7b2080c36f89..04dd0212322d 100644 --- a/unoxml/source/rdf/CLiteral.cxx +++ b/unoxml/source/rdf/CLiteral.cxx @@ -188,8 +188,7 @@ OUString SAL_CALL _getImplementationName() { css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames() { - css::uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.rdf.Literal"; + css::uno::Sequence< OUString > s { "com.sun.star.rdf.Literal" }; return s; } diff --git a/unoxml/source/rdf/CURI.cxx b/unoxml/source/rdf/CURI.cxx index bcfc5b00af71..c9b7f760450c 100644 --- a/unoxml/source/rdf/CURI.cxx +++ b/unoxml/source/rdf/CURI.cxx @@ -815,8 +815,7 @@ OUString SAL_CALL _getImplementationName() { css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames() { - css::uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.rdf.URI"; + css::uno::Sequence< OUString > s { "com.sun.star.rdf.URI" }; return s; } diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx index 95a48afd54cb..2c627134ac30 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -2440,8 +2440,7 @@ OUString SAL_CALL _getImplementationName() { uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames() { - uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.rdf.Repository"; + uno::Sequence< OUString > s { "com.sun.star.rdf.Repository" }; return s; } |