summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
+ };
}
}