tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor

Change-Id: Ib58c66590c60175d7984af55d23b7c55a6a2383e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86828
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index c55cea3..3daafda 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -530,8 +530,7 @@ sal_Bool SaxExpatParser::supportsService(const OUString& ServiceName)
// XServiceInfo
css::uno::Sequence< OUString > SaxExpatParser::getSupportedServiceNames()
{
    css::uno::Sequence<OUString> seq { "com.sun.star.xml.sax.Parser" };
    return seq;
    return { "com.sun.star.xml.sax.Parser" };
}


diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index ec59324..f4f4c4b 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -1047,8 +1047,7 @@ sal_Bool SAXWriter::supportsService(const OUString& ServiceName)
// XServiceInfo
Sequence< OUString > SAXWriter::getSupportedServiceNames()
{
    Sequence<OUString> seq { "com.sun.star.xml.sax.Writer" };
    return seq;
    return { "com.sun.star.xml.sax.Writer" };
}

void SAXWriter::startDocument()
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 2b843d0..80bff5e 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -1419,8 +1419,7 @@ sal_Bool FastSaxParser::supportsService( const OUString& ServiceName )

uno::Sequence<OUString> FastSaxParser::getSupportedServiceNames()
{
    Sequence<OUString> seq { "com.sun.star.xml.sax.FastParser" };
    return seq;
    return { "com.sun.star.xml.sax.FastParser" };
}

} // namespace sax_fastparser
diff --git a/sc/source/filter/oox/ooxformulaparser.cxx b/sc/source/filter/oox/ooxformulaparser.cxx
index 5142210..73e3565 100644
--- a/sc/source/filter/oox/ooxformulaparser.cxx
+++ b/sc/source/filter/oox/ooxformulaparser.cxx
@@ -119,8 +119,7 @@ sal_Bool SAL_CALL OOXMLFormulaParser::supportsService( const OUString& rService 

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

// com.sun.star.lang.XInitialization interface --------------------------------
diff --git a/sc/source/ui/unoobj/exceldetect.cxx b/sc/source/ui/unoobj/exceldetect.cxx
index 41c5c01..a56497f 100644
--- a/sc/source/ui/unoobj/exceldetect.cxx
+++ b/sc/source/ui/unoobj/exceldetect.cxx
@@ -37,8 +37,7 @@ sal_Bool ScExcelBiffDetect::supportsService( const OUString& aName )

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

namespace {
diff --git a/sccomp/source/solver/SolverComponent.cxx b/sccomp/source/solver/SolverComponent.cxx
index 58ce00a..3df7bf5 100644
--- a/sccomp/source/solver/SolverComponent.cxx
+++ b/sccomp/source/solver/SolverComponent.cxx
@@ -248,8 +248,7 @@ sal_Bool SAL_CALL SolverComponent::supportsService( const OUString& rServiceName

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

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index 472a72e..c158487 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -124,8 +124,7 @@ Sequence< OUString > SAL_CALL SfxTerminateListener_Impl::getSupportedServiceName
    // The desktop must know, which listener will terminate the SfxApplication in real !
    // It must call this special listener as last one ... otherwise we shutdown the SfxApplication BEFORE other listener
    // can react ...
    Sequence< OUString > lNames { "com.sun.star.frame.TerminateListener" };
    return lNames;
    return { "com.sun.star.frame.TerminateListener" };
}


diff --git a/sfx2/source/appl/macroloader.cxx b/sfx2/source/appl/macroloader.cxx
index 912b555..46090f7 100644
--- a/sfx2/source/appl/macroloader.cxx
+++ b/sfx2/source/appl/macroloader.cxx
@@ -65,8 +65,7 @@ sal_Bool SAL_CALL SfxMacroLoader::supportsService(OUString const & ServiceName)

css::uno::Sequence<OUString> SAL_CALL SfxMacroLoader::getSupportedServiceNames()
{
    css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ProtocolHandler" };
    return aSeq;
    return { "com.sun.star.frame.ProtocolHandler" };
}

SfxObjectShell* SfxMacroLoader::GetObjectShell_Impl()
diff --git a/svtools/source/filter/SvFilterOptionsDialog.cxx b/svtools/source/filter/SvFilterOptionsDialog.cxx
index b63b70a..7203cfd 100644
--- a/svtools/source/filter/SvFilterOptionsDialog.cxx
+++ b/svtools/source/filter/SvFilterOptionsDialog.cxx
@@ -142,8 +142,7 @@ sal_Bool SAL_CALL SvFilterOptionsDialog::supportsService( const OUString& rServi
}
uno::Sequence< OUString > SAL_CALL SvFilterOptionsDialog::getSupportedServiceNames()
{
    uno::Sequence<OUString> aRet { "com.sun.star.ui.dialogs.FilterOptionsDialog" };
    return aRet;
    return { "com.sun.star.ui.dialogs.FilterOptionsDialog" };
}

// XPropertyAccess
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx
index 42a07ba..9b1ffe4 100644
--- a/svtools/source/uno/unoevent.cxx
+++ b/svtools/source/uno/unoevent.cxx
@@ -317,9 +317,7 @@ sal_Bool SvBaseEventDescriptor::supportsService(const OUString& rServiceName)

Sequence<OUString> SvBaseEventDescriptor::getSupportedServiceNames()
{
    Sequence<OUString> aSequence { sAPI_ServiceName };

    return aSequence;
    return { sAPI_ServiceName };
}

SvMacroItemId SvBaseEventDescriptor::mapNameToEventID(const OUString& rName) const
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx
index decbada..9155ccc 100644
--- a/svtools/source/uno/wizard/unowizard.cxx
+++ b/svtools/source/uno/wizard/unowizard.cxx
@@ -260,8 +260,7 @@ namespace {

    Sequence< OUString > SAL_CALL Wizard::getSupportedServiceNames()
    {
        Sequence< OUString > aServices { "com.sun.star.ui.dialogs.Wizard" };
        return aServices;
        return { "com.sun.star.ui.dialogs.Wizard" };
    }

    Reference< XPropertySetInfo > SAL_CALL Wizard::getPropertySetInfo()
diff --git a/sw/source/core/docnode/finalthreadmanager.cxx b/sw/source/core/docnode/finalthreadmanager.cxx
index 3d9eb38..80ddd75 100644
--- a/sw/source/core/docnode/finalthreadmanager.cxx
+++ b/sw/source/core/docnode/finalthreadmanager.cxx
@@ -284,8 +284,7 @@ sal_Bool SAL_CALL FinalThreadManager::supportsService(OUString const & serviceNa

css::uno::Sequence< OUString > SAL_CALL FinalThreadManager::getSupportedServiceNames()
{
    css::uno::Sequence< OUString > s { "com.sun.star.util.JobManager" };
    return s;
    return { "com.sun.star.util.JobManager" };
}

// css::util::XJobManager:
diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx
index 213e040..bf8ea87 100644
--- a/sw/source/core/unocore/unocoll.cxx
+++ b/sw/source/core/unocore/unocoll.cxx
@@ -974,8 +974,7 @@ sal_Bool SwXTextTables::supportsService(const OUString& rServiceName)

uno::Sequence< OUString > SwXTextTables::getSupportedServiceNames()
{
    uno::Sequence< OUString > aRet { "com.sun.star.text.TextTables" };
    return aRet;
    return { "com.sun.star.text.TextTables" };
}

uno::Reference<text::XTextTable> SwXTextTables::GetObject(SwFrameFormat& rFormat)
@@ -1292,8 +1291,7 @@ sal_Bool SwXTextFrames::supportsService(const OUString& rServiceName)

Sequence< OUString > SwXTextFrames::getSupportedServiceNames()
{
    Sequence<OUString> aRet { "com.sun.star.text.TextFrames" };
    return aRet;
    return { "com.sun.star.text.TextFrames" };
}

SwXTextFrames::SwXTextFrames(SwDoc* _pDoc) :
@@ -1317,8 +1315,7 @@ sal_Bool SwXTextGraphicObjects::supportsService(const OUString& rServiceName)

Sequence< OUString > SwXTextGraphicObjects::getSupportedServiceNames()
{
    Sequence<OUString> aRet { "com.sun.star.text.TextGraphicObjects" };
    return aRet;
    return { "com.sun.star.text.TextGraphicObjects" };
}

SwXTextGraphicObjects::SwXTextGraphicObjects(SwDoc* _pDoc) :
@@ -1342,8 +1339,7 @@ sal_Bool SwXTextEmbeddedObjects::supportsService(const OUString& rServiceName)

Sequence< OUString > SwXTextEmbeddedObjects::getSupportedServiceNames()
{
    Sequence<OUString> aRet { "com.sun.star.text.TextEmbeddedObjects" };
    return aRet;
    return { "com.sun.star.text.TextEmbeddedObjects" };
}

SwXTextEmbeddedObjects::SwXTextEmbeddedObjects(SwDoc* _pDoc) :
@@ -1367,8 +1363,7 @@ sal_Bool SwXTextSections::supportsService(const OUString& rServiceName)

Sequence< OUString > SwXTextSections::getSupportedServiceNames()
{
    Sequence<OUString> aRet { "com.sun.star.text.TextSections" };
    return aRet;
    return { "com.sun.star.text.TextSections" };
}

SwXTextSections::SwXTextSections(SwDoc* _pDoc) :
@@ -1543,8 +1538,7 @@ sal_Bool SwXBookmarks::supportsService(const OUString& rServiceName)

Sequence< OUString > SwXBookmarks::getSupportedServiceNames()
{
    Sequence< OUString > aRet { "com.sun.star.text.Bookmarks" };
    return aRet;
    return { "com.sun.star.text.Bookmarks" };
}

SwXBookmarks::SwXBookmarks(SwDoc* _pDoc) :
@@ -1742,8 +1736,7 @@ sal_Bool SwXFootnotes::supportsService(const OUString& rServiceName)

Sequence< OUString > SwXFootnotes::getSupportedServiceNames()
{
    Sequence<OUString> aRet { "com.sun.star.text.Footnotes" };
    return aRet;
    return { "com.sun.star.text.Footnotes" };
}

SwXFootnotes::SwXFootnotes(bool bEnd, SwDoc* _pDoc)
@@ -1838,8 +1831,7 @@ sal_Bool SwXReferenceMarks::supportsService(const OUString& rServiceName)

Sequence< OUString > SwXReferenceMarks::getSupportedServiceNames()
{
    Sequence<OUString> aRet { "com.sun.star.text.ReferenceMarks" };
    return aRet;
    return { "com.sun.star.text.ReferenceMarks" };
}

SwXReferenceMarks::SwXReferenceMarks(SwDoc* _pDoc) :
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 685f29f..492faee 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -464,8 +464,7 @@ sal_Bool SwXDrawPage::supportsService(const OUString& rServiceName)

uno::Sequence< OUString > SwXDrawPage::getSupportedServiceNames()
{
    uno::Sequence<OUString> aRet { "com.sun.star.drawing.GenericDrawPage" };
    return aRet;
    return { "com.sun.star.drawing.GenericDrawPage" };
}

SwXDrawPage::SwXDrawPage(SwDoc* pDc) :
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx
index 835a592..cea5fec 100644
--- a/sw/source/core/unocore/unoportenum.cxx
+++ b/sw/source/core/unocore/unoportenum.cxx
@@ -326,8 +326,7 @@ SwXTextPortionEnumeration::supportsService(const OUString& rServiceName)

Sequence< OUString > SwXTextPortionEnumeration::getSupportedServiceNames()
{
    Sequence<OUString> aRet { "com.sun.star.text.TextPortionEnumeration" };
    return aRet;
    return { "com.sun.star.text.TextPortionEnumeration" };
}

SwXTextPortionEnumeration::SwXTextPortionEnumeration(
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx
index 65f1f48..a7f76cf 100644
--- a/sw/source/uibase/ribbar/workctrl.cxx
+++ b/sw/source/uibase/ribbar/workctrl.cxx
@@ -871,8 +871,7 @@ OUString SAL_CALL NavElementToolBoxControl::getImplementationName()

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

// XComponent