summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-08-15 19:56:03 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-08-15 23:00:38 +0200
commitc368e0c00e98212e783ae98a18616ea5d0ca6da6 (patch)
tree796aff351f487bd4ac8d796bb047c5bfd624a1c1
parent606a88d2abf85aa6edcc1fa26dc50cab6de3241f (diff)
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>
-rw-r--r--svtools/source/graphic/renderer.cxx3
-rw-r--r--svtools/source/hatchwindow/documentcloser.cxx3
-rw-r--r--svtools/source/hatchwindow/hatchwindowfactory.cxx8
3 files changed, 6 insertions, 8 deletions
diff --git a/svtools/source/graphic/renderer.cxx b/svtools/source/graphic/renderer.cxx
index bae898873953..655e07ef72d5 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 e94403073477..58d4f4ecbd96 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 63004c951004..9bd711d18b51 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"
+ };
}
}