From 96c26b0d9d10fa9bac3695222980d7145f0342d7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 15 Nov 2015 13:17:00 +0200 Subject: use initialiser for Sequence using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- basegfx/source/tools/unopolypolygon.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'basegfx/source') diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx index 4dae8020f58b..3639dee57d73 100644 --- a/basegfx/source/tools/unopolypolygon.cxx +++ b/basegfx/source/tools/unopolypolygon.cxx @@ -448,8 +448,7 @@ namespace unotools uno::Sequence< OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() throw( uno::RuntimeException, std::exception ) { - uno::Sequence< OUString > aRet(1); - aRet[0] = SERVICE_NAME ; + uno::Sequence aRet { SERVICE_NAME }; return aRet; } -- cgit