From a26173266db38a2e9f91c37005097e33bb0e628d Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 7 Dec 2024 18:09:17 +0500 Subject: [PATCH] Simplify a bit Change-Id: I7ecbf2c1e4b08175dabd29782a40dd2f25fe040c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178058 Reviewed-by: Mike Kaganski Tested-by: Jenkins --- sc/source/ui/vba/vbaaxistitle.cxx | 2 +- sc/source/ui/vba/vbacharttitle.cxx | 2 +- sc/source/ui/vba/vbaglobals.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sc/source/ui/vba/vbaaxistitle.cxx b/sc/source/ui/vba/vbaaxistitle.cxx index c35166cdc56c..7bf277ff5d5b 100644 --- a/sc/source/ui/vba/vbaaxistitle.cxx +++ b/sc/source/ui/vba/vbaaxistitle.cxx @@ -37,7 +37,7 @@ ScVbaAxisTitle::getServiceNames() { static uno::Sequence< OUString > const aServiceNames = comphelper::concatSequences( AxisTitleBase::getServiceNames(), - uno::Sequence { u"ooo.vba.excel.AxisTitle"_ustr } ); + std::initializer_list{ u"ooo.vba.excel.AxisTitle"_ustr } ); return aServiceNames; } diff --git a/sc/source/ui/vba/vbacharttitle.cxx b/sc/source/ui/vba/vbacharttitle.cxx index 93a9acdca82f..4a4e5e7f1563 100644 --- a/sc/source/ui/vba/vbacharttitle.cxx +++ b/sc/source/ui/vba/vbacharttitle.cxx @@ -37,7 +37,7 @@ ScVbaChartTitle::getServiceNames() { static uno::Sequence< OUString > const aServiceNames = comphelper::concatSequences( ChartTitleBase::getServiceNames(), - uno::Sequence< OUString > { u"ooo.vba.excel.Chart"_ustr } ); + std::initializer_list{ u"ooo.vba.excel.Chart"_ustr } ); return aServiceNames; } diff --git a/sc/source/ui/vba/vbaglobals.cxx b/sc/source/ui/vba/vbaglobals.cxx index 9fec0ccba8fd..366496024295 100644 --- a/sc/source/ui/vba/vbaglobals.cxx +++ b/sc/source/ui/vba/vbaglobals.cxx @@ -225,7 +225,7 @@ ScVbaGlobals::getAvailableServiceNames( ) { static const uno::Sequence< OUString > serviceNames = comphelper::concatSequences( ScVbaGlobals_BASE::getAvailableServiceNames(), - uno::Sequence< OUString > + std::initializer_list { u"ooo.vba.excel.Range"_ustr, u"ooo.vba.excel.Workbook"_ustr,