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

Change-Id: I37b5056026f29d2619a4f9d3da9251924c7f5fdd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148898
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
diff --git a/extensions/source/ole/servprov.cxx b/extensions/source/ole/servprov.cxx
index ea69be1..f5a9323 100644
--- a/extensions/source/ole/servprov.cxx
+++ b/extensions/source/ole/servprov.cxx
@@ -305,8 +305,7 @@ css::uno::Sequence<OUString> OleConverter::getSupportedServiceNames()
            "com.sun.star.bridge.OleBridgeSupplier2",
            "com.sun.star.bridge.oleautomation.BridgeSupplier"};
    }
    return css::uno::Sequence<OUString>{
        "com.sun.star.bridge.OleBridgeSupplierVar1"};
    return {"com.sun.star.bridge.OleBridgeSupplierVar1"};
}

// XInitialize ------------------------------------------------------------------------------
diff --git a/sc/source/ui/vba/vbaeventshelper.cxx b/sc/source/ui/vba/vbaeventshelper.cxx
index 199c549..9cfb3ab 100644
--- a/sc/source/ui/vba/vbaeventshelper.cxx
+++ b/sc/source/ui/vba/vbaeventshelper.cxx
@@ -626,8 +626,7 @@ OUString ScVbaEventsHelper::getImplementationName()

css::uno::Sequence<OUString> ScVbaEventsHelper::getSupportedServiceNames()
{
    return css::uno::Sequence<OUString>{
        "com.sun.star.script.vba.VBASpreadsheetEventProcessor"};
    return {"com.sun.star.script.vba.VBASpreadsheetEventProcessor"};
}

// protected ------------------------------------------------------------------
diff --git a/sd/source/ui/framework/configuration/ResourceId.cxx b/sd/source/ui/framework/configuration/ResourceId.cxx
index 1845b35..21d7e69 100644
--- a/sd/source/ui/framework/configuration/ResourceId.cxx
+++ b/sd/source/ui/framework/configuration/ResourceId.cxx
@@ -384,8 +384,7 @@ sal_Bool ResourceId::supportsService(OUString const & ServiceName)

css::uno::Sequence<OUString> ResourceId::getSupportedServiceNames()
{
    return css::uno::Sequence<OUString>{
        "com.sun.star.drawing.framework.ResourceId"};
    return {"com.sun.star.drawing.framework.ResourceId"};
}

/** When eMode is DIRECTLY then the anchor of the called object and the
diff --git a/svx/inc/sdr/primitive2d/primitivefactory2d.hxx b/svx/inc/sdr/primitive2d/primitivefactory2d.hxx
index ffe099e..eb1c8fd 100644
--- a/svx/inc/sdr/primitive2d/primitivefactory2d.hxx
+++ b/svx/inc/sdr/primitive2d/primitivefactory2d.hxx
@@ -61,7 +61,7 @@ public:

    css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
    {
        return css::uno::Sequence<OUString>{ "com.sun.star.graphic.PrimitiveFactory2D" };
        return { "com.sun.star.graphic.PrimitiveFactory2D" };
    }
};