From 25aec383f95fded43b3fe5fc588b4ebdc6d7d272 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 15 Nov 2015 12:22:28 +0200 Subject: use initialiser for Sequence replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/tbxctrls/extrusioncontrols.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'svx/source/tbxctrls/extrusioncontrols.cxx') diff --git a/svx/source/tbxctrls/extrusioncontrols.cxx b/svx/source/tbxctrls/extrusioncontrols.cxx index 0d68e606dba5..80bda78901aa 100644 --- a/svx/source/tbxctrls/extrusioncontrols.cxx +++ b/svx/source/tbxctrls/extrusioncontrols.cxx @@ -274,8 +274,7 @@ OUString SAL_CALL ExtrusionDirectionControl_getImplementationName() Sequence< OUString > SAL_CALL ExtrusionDirectionControl_getSupportedServiceNames() throw( RuntimeException ) { - Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController"; + Sequence aSNS { "com.sun.star.frame.ToolbarController" }; return aSNS; } @@ -518,8 +517,7 @@ OUString SAL_CALL ExtrusionDepthController_getImplementationName() Sequence< OUString > SAL_CALL ExtrusionDepthController_getSupportedServiceNames() throw( RuntimeException ) { - Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController"; + Sequence aSNS { "com.sun.star.frame.ToolbarController" }; return aSNS; } @@ -791,8 +789,7 @@ OUString SAL_CALL ExtrusionLightingControl_getImplementationName() Sequence< OUString > SAL_CALL ExtrusionLightingControl_getSupportedServiceNames() throw( RuntimeException ) { - Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController"; + Sequence aSNS { "com.sun.star.frame.ToolbarController" }; return aSNS; } @@ -935,8 +932,7 @@ OUString SAL_CALL ExtrusionSurfaceControl_getImplementationName() Sequence< OUString > SAL_CALL ExtrusionSurfaceControl_getSupportedServiceNames() throw( RuntimeException ) { - Sequence< OUString > aSNS( 1 ); - aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController"; + Sequence aSNS { "com.sun.star.frame.ToolbarController" }; return aSNS; } -- cgit