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 --- ucb/source/core/FileAccess.cxx | 3 +-- ucb/source/ucp/ext/ucpext_datasupplier.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'ucb/source') diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx index 45f4e46ea9e6..0593044db820 100644 --- a/ucb/source/core/FileAccess.cxx +++ b/ucb/source/core/FileAccess.cxx @@ -777,8 +777,7 @@ Reference< XInterface > SAL_CALL FileAccess_CreateInstance( const Reference< XMu Sequence< OUString > FileAccess_getSupportedServiceNames() { - Sequence< OUString > seqNames(1); - seqNames.getArray()[0] = SERVICE_NAME; + Sequence< OUString > seqNames { SERVICE_NAME }; return seqNames; } diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.cxx b/ucb/source/ucp/ext/ucpext_datasupplier.cxx index 4d794a656f39..9192f1bf7260 100644 --- a/ucb/source/ucp/ext/ucpext_datasupplier.cxx +++ b/ucb/source/ucp/ext/ucpext_datasupplier.cxx @@ -171,8 +171,7 @@ namespace ucb { namespace ucp { namespace ext ::ucbhelper::Content aWrappedContent( sPackageLocation, getResultSet()->getEnvironment(), m_pImpl->m_xContext ); // obtain the properties which our result set is set up for from the wrapped content - Sequence< OUString > aPropertyNames(1); - aPropertyNames[0] = "Title"; + Sequence< OUString > aPropertyNames { "Title" }; const Reference< XResultSet > xFolderContent( aWrappedContent.createCursor( aPropertyNames ), UNO_SET_THROW ); const Reference< XRow > xContentRow( xFolderContent, UNO_QUERY_THROW ); -- cgit