From 52e086c336cc52dcea410f0c3b8ada8439ebe969 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 18 Aug 2019 09:45:11 +0200 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor in sc, sd Change-Id: Id32e76ad37000084b99781e87428ed2c23ef02a6 Reviewed-on: https://gerrit.libreoffice.org/77657 Tested-by: Jenkins Reviewed-by: Julien Nabet --- sc/source/filter/xml/xmlimprt.cxx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index 96c348d34f35..5475bd06df9a 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -116,8 +116,7 @@ OUString ScXMLImport_getImplementationName() throw() uno::Sequence< OUString > ScXMLImport_getSupportedServiceNames() throw() { - const OUString aServiceName( ScXMLImport_getImplementationName() ); - return uno::Sequence< OUString > ( &aServiceName, 1 ); + return { ScXMLImport_getImplementationName() }; } uno::Reference< uno::XInterface > ScXMLImport_createInstance( @@ -134,8 +133,7 @@ OUString ScXMLImport_Meta_getImplementationName() throw() uno::Sequence< OUString > ScXMLImport_Meta_getSupportedServiceNames() throw() { - const OUString aServiceName( ScXMLImport_Meta_getImplementationName() ); - return uno::Sequence< OUString > ( &aServiceName, 1 ); + return { ScXMLImport_Meta_getImplementationName() }; } uno::Reference< uno::XInterface > ScXMLImport_Meta_createInstance( @@ -152,8 +150,7 @@ OUString ScXMLImport_Styles_getImplementationName() throw() uno::Sequence< OUString > ScXMLImport_Styles_getSupportedServiceNames() throw() { - const OUString aServiceName( ScXMLImport_Styles_getImplementationName() ); - return uno::Sequence< OUString > ( &aServiceName, 1 ); + return { ScXMLImport_Styles_getImplementationName() }; } uno::Reference< uno::XInterface > ScXMLImport_Styles_createInstance( @@ -170,8 +167,7 @@ OUString ScXMLImport_Content_getImplementationName() throw() uno::Sequence< OUString > ScXMLImport_Content_getSupportedServiceNames() throw() { - const OUString aServiceName( ScXMLImport_Content_getImplementationName() ); - return uno::Sequence< OUString > ( &aServiceName, 1 ); + return { ScXMLImport_Content_getImplementationName() }; } uno::Reference< uno::XInterface > ScXMLImport_Content_createInstance( @@ -188,8 +184,7 @@ OUString ScXMLImport_Settings_getImplementationName() throw() uno::Sequence< OUString > ScXMLImport_Settings_getSupportedServiceNames() throw() { - const OUString aServiceName( ScXMLImport_Settings_getImplementationName() ); - return uno::Sequence< OUString > ( &aServiceName, 1 ); + return { ScXMLImport_Settings_getImplementationName() }; } uno::Reference< uno::XInterface > ScXMLImport_Settings_createInstance( -- cgit