diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 09:45:11 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 10:34:30 +0200 |
commit | 52e086c336cc52dcea410f0c3b8ada8439ebe969 (patch) | |
tree | 1dcbb2d16b3e228cee0522bcf224fd37f80d9865 /sc | |
parent | b49f189d9bfb0b5dca5ac259e6f56b49c2d0d08f (diff) |
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 <serval2412@yahoo.fr>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlimprt.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
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( |