tdf88205 Adapt uses of css::uno::Sequence to use initializer_list ctor

Change-Id: I5eb9c58f511a6ded473eb3fb998fd21584c227d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86607
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index d0b93e2..9aba80c 100644
--- a/dbaccess/source/filter/xml/xmlfilter.cxx
+++ b/dbaccess/source/filter/xml/xmlfilter.cxx
@@ -218,8 +218,7 @@

css::uno::Sequence<OUString> ODBFilter::getSupportedServiceNames_Static()
{
    css::uno::Sequence<OUString> s { "com.sun.star.document.ImportFilter" };
    return s;
    return { "com.sun.star.document.ImportFilter" };
}


diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index e5c095e..02c1e73 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -198,8 +198,7 @@

css::uno::Sequence<OUString> SbaTableQueryBrowser::getSupportedServiceNames_Static()
{
    css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.DataSourceBrowser" };
    return aSupported;
    return { "com.sun.star.sdb.DataSourceBrowser" };
}

Reference< XInterface > SbaTableQueryBrowser::Create(const Reference<XMultiServiceFactory >& _rxFactory)
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 7a0b8c1..9f5d9f6 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -1683,8 +1683,7 @@

Sequence< OUString > ZipPackage::static_getSupportedServiceNames()
{
    uno::Sequence<OUString> aNames { "com.sun.star.packages.Package" };
    return aNames;
    return { "com.sun.star.packages.Package" };
}

OUString ZipPackage::getImplementationName()
diff --git a/sc/source/ui/sidebar/ScPanelFactory.cxx b/sc/source/ui/sidebar/ScPanelFactory.cxx
index 7257b5b..b3f69e7 100644
--- a/sc/source/ui/sidebar/ScPanelFactory.cxx
+++ b/sc/source/ui/sidebar/ScPanelFactory.cxx
@@ -128,8 +128,7 @@

css::uno::Sequence<OUString> ScPanelFactory::getSupportedServiceNames()
{
    css::uno::Sequence<OUString> aServiceNames { "com.sun.star.ui.UIElementFactory" };
    return aServiceNames;
    return { "com.sun.star.ui.UIElementFactory" };
}

} } // end of namespace sc::sidebar
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx
index 6837145..4eebb81 100644
--- a/sc/source/ui/unoobj/appluno.cxx
+++ b/sc/source/ui/unoobj/appluno.cxx
@@ -191,8 +191,7 @@

uno::Sequence<OUString> ScSpreadsheetSettings::getSupportedServiceNames_Static()
{
    uno::Sequence<OUString> aRet { SCSPREADSHEETSETTINGS_SERVICE };
    return aRet;
    return { SCSPREADSHEETSETTINGS_SERVICE };
}

bool ScSpreadsheetSettings::getPropertyBool(const OUString& aPropertyName)
diff --git a/sc/source/ui/unoobj/miscuno.cxx b/sc/source/ui/unoobj/miscuno.cxx
index c8ccfa464..9a74f72 100644
--- a/sc/source/ui/unoobj/miscuno.cxx
+++ b/sc/source/ui/unoobj/miscuno.cxx
@@ -228,8 +228,7 @@
css::uno::Sequence< OUString >
    SAL_CALL ScIndexEnumeration::getSupportedServiceNames()
{
    css::uno::Sequence<OUString> aRet { sServiceName };
    return aRet;
    return { sServiceName };
}

ScNameToIndexAccess::ScNameToIndexAccess( const css::uno::Reference<
diff --git a/sc/source/ui/unoobj/pageuno.cxx b/sc/source/ui/unoobj/pageuno.cxx
index 3455537..5de45a5 100644
--- a/sc/source/ui/unoobj/pageuno.cxx
+++ b/sc/source/ui/unoobj/pageuno.cxx
@@ -54,8 +54,7 @@

uno::Sequence<OUString> SAL_CALL ScPageObj::getSupportedServiceNames()
{
    uno::Sequence<OUString> aRet { "com.sun.star.sheet.SpreadsheetDrawPage" };
    return aRet;
    return { "com.sun.star.sheet.SpreadsheetDrawPage" };
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index 711457f..b9ca118 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -340,8 +340,7 @@

css::uno::Sequence<OUString> ScFilterDetect::getSupportedServiceNames()
{
    uno::Sequence<OUString> seqServiceNames { "com.sun.star.frame.ExtendedTypeDetection" };
    return seqServiceNames;
    return { "com.sun.star.frame.ExtendedTypeDetection" };
}

extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
diff --git a/sccomp/source/solver/SwarmSolver.cxx b/sccomp/source/solver/SwarmSolver.cxx
index a3f2bbe..dc310c6 100644
--- a/sccomp/source/solver/SwarmSolver.cxx
+++ b/sccomp/source/solver/SwarmSolver.cxx
@@ -265,8 +265,7 @@

    uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
    {
        uno::Sequence<OUString> aServiceNames{ "com.sun.star.sheet.Solver" };
        return aServiceNames;
        return { "com.sun.star.sheet.Solver" };
    }

private:
diff --git a/svx/source/tbxctrls/tbunocontroller.cxx b/svx/source/tbxctrls/tbunocontroller.cxx
index 11f5cc2..ca264c2 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -343,8 +343,7 @@

uno::Sequence< OUString > SAL_CALL FontHeightToolBoxControl::getSupportedServiceNames(  )
{
    uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
    return aSNS;
    return { "com.sun.star.frame.ToolbarController" };
}

// XComponent