tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in svtools
Change-Id: I0f0ec621a4476763dbc93b41118bfd4f570145e9
Reviewed-on: https://gerrit.libreoffice.org/77541
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
diff --git a/svtools/source/graphic/renderer.cxx b/svtools/source/graphic/renderer.cxx
index bae8988..655e07e 100644
--- a/svtools/source/graphic/renderer.cxx
+++ b/svtools/source/graphic/renderer.cxx
@@ -151,8 +151,7 @@ sal_Bool SAL_CALL GraphicRendererVCL::supportsService( const OUString& ServiceNa
uno::Sequence< OUString > SAL_CALL GraphicRendererVCL::getSupportedServiceNames()
{
uno::Sequence<OUString> aSeq { "com.sun.star.graphic.GraphicRendererVCL" };
return aSeq;
return uno::Sequence<OUString>{"com.sun.star.graphic.GraphicRendererVCL" };
}
diff --git a/svtools/source/hatchwindow/documentcloser.cxx b/svtools/source/hatchwindow/documentcloser.cxx
index e944030..58d4f4ec 100644
--- a/svtools/source/hatchwindow/documentcloser.cxx
+++ b/svtools/source/hatchwindow/documentcloser.cxx
@@ -220,8 +220,7 @@ sal_Bool SAL_CALL ODocumentCloser::supportsService( const OUString& ServiceName
uno::Sequence< OUString > SAL_CALL ODocumentCloser::getSupportedServiceNames()
{
const OUString aServiceName( "com.sun.star.embed.DocumentCloser" );
return uno::Sequence< OUString >( &aServiceName, 1 );
return uno::Sequence< OUString > { "com.sun.star.embed.DocumentCloser" };
}
}
diff --git a/svtools/source/hatchwindow/hatchwindowfactory.cxx b/svtools/source/hatchwindow/hatchwindowfactory.cxx
index 63004c95..9bd711d 100644
--- a/svtools/source/hatchwindow/hatchwindowfactory.cxx
+++ b/svtools/source/hatchwindow/hatchwindowfactory.cxx
@@ -74,10 +74,10 @@ sal_Bool SAL_CALL OHatchWindowFactory::supportsService( const OUString& ServiceN
uno::Sequence< OUString > SAL_CALL OHatchWindowFactory::getSupportedServiceNames()
{
uno::Sequence< OUString > aRet(2);
aRet[0] = "com.sun.star.embed.HatchWindowFactory";
aRet[1] = "com.sun.star.comp.embed.HatchWindowFactory";
return aRet;
return uno::Sequence<OUString>{
"com.sun.star.embed.HatchWindowFactory",
"com.sun.star.comp.embed.HatchWindowFactory"
};
}
}