From 54d22957bc241fc5867fa1c720cf1266133e4e90 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 15 Nov 2015 12:17:19 +0200 Subject: use initialiser for Sequence performed using: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence (\w+)\(1\); .*\[0\] = (\S+);/Sequence \1 { \2 };/g" Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- dbaccess/source/ui/uno/unosqlmessage.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dbaccess/source/ui/uno/unosqlmessage.cxx') diff --git a/dbaccess/source/ui/uno/unosqlmessage.cxx b/dbaccess/source/ui/uno/unosqlmessage.cxx index 49b3d8310674..554a12ae83ad 100644 --- a/dbaccess/source/ui/uno/unosqlmessage.cxx +++ b/dbaccess/source/ui/uno/unosqlmessage.cxx @@ -80,8 +80,7 @@ css::uno::Sequence SAL_CALL OSQLMessageDialog::getSupportedServiceName css::uno::Sequence OSQLMessageDialog::getSupportedServiceNames_Static() throw(RuntimeException) { - css::uno::Sequence aSupported(1); - aSupported.getArray()[0] = "com.sun.star.sdb.ErrorMessageDialog"; + css::uno::Sequence aSupported { "com.sun.star.sdb.ErrorMessageDialog" }; return aSupported; } -- cgit