[Libreoffice-commits] core.git: svtools/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 15 21:01:59 UTC 2019


 svtools/source/graphic/renderer.cxx               |    3 +--
 svtools/source/hatchwindow/documentcloser.cxx     |    3 +--
 svtools/source/hatchwindow/hatchwindowfactory.cxx |    8 ++++----
 3 files changed, 6 insertions(+), 8 deletions(-)

New commits:
commit c368e0c00e98212e783ae98a18616ea5d0ca6da6
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Thu Aug 15 19:56:03 2019 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Thu Aug 15 23:00:38 2019 +0200

    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 at yahoo.fr>

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"
+    };
 }
 
 }


More information about the Libreoffice-commits mailing list