summaryrefslogtreecommitdiff
path: root/extensions/source/update/check
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/update/check')
-rw-r--r--extensions/source/update/check/updatecheckconfig.cxx3
-rw-r--r--extensions/source/update/check/updatecheckjob.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/extensions/source/update/check/updatecheckconfig.cxx b/extensions/source/update/check/updatecheckconfig.cxx
index e8b29d784b6d..f0254c51994f 100644
--- a/extensions/source/update/check/updatecheckconfig.cxx
+++ b/extensions/source/update/check/updatecheckconfig.cxx
@@ -494,8 +494,7 @@ UpdateCheckConfig::clearUpdateFound()
uno::Sequence< OUString >
UpdateCheckConfig::getServiceNames()
{
- uno::Sequence< OUString > aServiceList(1);
- aServiceList[0] = "com.sun.star.setup.UpdateCheckConfig";
+ uno::Sequence< OUString > aServiceList { "com.sun.star.setup.UpdateCheckConfig" };
return aServiceList;
}
diff --git a/extensions/source/update/check/updatecheckjob.cxx b/extensions/source/update/check/updatecheckjob.cxx
index 1b3c2272ff0c..b2051c86ceba 100644
--- a/extensions/source/update/check/updatecheckjob.cxx
+++ b/extensions/source/update/check/updatecheckjob.cxx
@@ -162,8 +162,7 @@ UpdateCheckJob::~UpdateCheckJob()
uno::Sequence< OUString >
UpdateCheckJob::getServiceNames()
{
- uno::Sequence< OUString > aServiceList(1);
- aServiceList[0] = "com.sun.star.setup.UpdateCheck";
+ uno::Sequence< OUString > aServiceList { "com.sun.star.setup.UpdateCheck" };
return aServiceList;
};