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 --- sc/source/ui/sidebar/ScPanelFactory.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sc/source/ui/sidebar') diff --git a/sc/source/ui/sidebar/ScPanelFactory.cxx b/sc/source/ui/sidebar/ScPanelFactory.cxx index 1e634954aa77..c953f192ea83 100644 --- a/sc/source/ui/sidebar/ScPanelFactory.cxx +++ b/sc/source/ui/sidebar/ScPanelFactory.cxx @@ -139,8 +139,7 @@ sal_Bool ScPanelFactory::supportsService(OUString const & ServiceName) css::uno::Sequence ScPanelFactory::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - css::uno::Sequence aServiceNames(1); - aServiceNames[0] = "com.sun.star.ui.UIElementFactory"; + css::uno::Sequence aServiceNames { "com.sun.star.ui.UIElementFactory" }; return aServiceNames; } -- cgit