summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorMesut Çifci <mesutcifci97@gmail.com>2020-01-14 14:35:40 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-01-15 14:52:04 +0100
commit15abfe9ae976a0d940725cdd570facc372981393 (patch)
tree5d8c7d7d3987a421720df709ae45902ccee491ba /stoc
parent52fece12345161911da2a531213b7d5541192aad (diff)
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Ice7c0ecc8ee05a5c3b0af458ceeee8191bdde322 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86752 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/security/file_policy.cxx3
-rw-r--r--stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx3
-rw-r--r--stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx3
3 files changed, 3 insertions, 6 deletions
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx
index 05cbddbfc4ab..97b0496a9c6b 100644
--- a/stoc/source/security/file_policy.cxx
+++ b/stoc/source/security/file_policy.cxx
@@ -479,8 +479,7 @@ sal_Bool FilePolicy::supportsService( OUString const & serviceName )
Sequence< OUString > FilePolicy::getSupportedServiceNames()
{
- Sequence<OUString> aSNS { "com.sun.star.security.Policy" };
- return aSNS;
+ return { "com.sun.star.security.Policy" };
}
} // namespace
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
index 1b73543bc5fb..dde6fcb0605f 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
@@ -173,8 +173,7 @@ sal_Bool Parser::supportsService(OUString const & serviceName)
css::uno::Sequence< OUString > Parser::getSupportedServiceNames()
{
- css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand" };
- return s;
+ return { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand" };
}
css::uno::Reference< css::uri::XUriReference > Parser::parse(
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
index 224d273fafb1..6f8624d270fb 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
@@ -384,8 +384,7 @@ sal_Bool Parser::supportsService(OUString const & serviceName)
css::uno::Sequence< OUString > Parser::getSupportedServiceNames()
{
- css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript" };
- return s;
+ return { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript" };
}
css::uno::Reference< css::uri::XUriReference >