summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishwas <19ucc001@lnmiit.ac.in>2021-01-05 11:48:07 +0530
committerStephan Bergmann <sbergman@redhat.com>2021-01-11 13:01:08 +0100
commit5d07a4fa1d6d669ee9796ff4babdde0644d2eb59 (patch)
treee35ab1dc2986b3ff6cf11edccfccf3e832059c2b
parent9b3dca4fef7cca1848e287ddb0f7af68808b6909 (diff)
tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Ic08f7d7c2b8da6dd5ede2a719633d123412de3ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108737 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--framework/source/jobs/jobdispatch.cxx3
-rw-r--r--framework/source/services/pathsettings.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/jobs/jobdispatch.cxx b/framework/source/jobs/jobdispatch.cxx
index 6ec94cb3293c..964f128e9110 100644
--- a/framework/source/jobs/jobdispatch.cxx
+++ b/framework/source/jobs/jobdispatch.cxx
@@ -99,8 +99,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
{
- css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ProtocolHandler" };
- return aSeq;
+ return {"com.sun.star.frame.ProtocolHandler"};
}
// Xinitialization
diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx
index 72c15015f586..c59ef728ccb5 100644
--- a/framework/source/services/pathsettings.cxx
+++ b/framework/source/services/pathsettings.cxx
@@ -185,8 +185,7 @@ public:
virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
{
- css::uno::Sequence< OUString > aSeq { "com.sun.star.util.PathSettings" };
- return aSeq;
+ return {"com.sun.star.util.PathSettings"};
}
// XInterface