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 --- extensions/source/logging/logger.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'extensions/source/logging/logger.cxx') diff --git a/extensions/source/logging/logger.cxx b/extensions/source/logging/logger.cxx index 2bafe5a625a8..e9b2944257b6 100644 --- a/extensions/source/logging/logger.cxx +++ b/extensions/source/logging/logger.cxx @@ -248,8 +248,7 @@ namespace logging Sequence< OUString > SAL_CALL EventLogger::getSupportedServiceNames() throw(RuntimeException, std::exception) { - Sequence< OUString > aServiceNames(1); - aServiceNames[0] = "com.sun.star.logging.Logger"; + Sequence< OUString > aServiceNames { "com.sun.star.logging.Logger" }; return aServiceNames; } @@ -280,8 +279,7 @@ namespace logging Sequence< OUString > SAL_CALL LoggerPool::getSupportedServiceNames_static() { - Sequence< OUString > aServiceNames(1); - aServiceNames[0] = getSingletonName_static(); + Sequence< OUString > aServiceNames { getSingletonName_static() }; return aServiceNames; } -- cgit