From 8e234c5b7d5bae66c544e581bee5770f3f83dd81 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 15 Nov 2015 08:43:35 +0200 Subject: use initialiser syntax for Sequence replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/dialogs/colorpicker.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cui/source/dialogs') diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx index 424204d80bba..4d351204170a 100644 --- a/cui/source/dialogs/colorpicker.cxx +++ b/cui/source/dialogs/colorpicker.cxx @@ -1562,8 +1562,7 @@ Reference< XInterface > SAL_CALL ColorPicker_createInstance( Reference< XCompone Sequence< OUString > SAL_CALL ColorPicker_getSupportedServiceNames() throw( RuntimeException ) { - Sequence< OUString > seq(1); - seq[0] = "com.sun.star.ui.dialogs.ColorPicker"; + Sequence< OUString > seq { "com.sun.star.ui.dialogs.ColorPicker" }; return seq; } -- cgit