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 --- dtrans/source/cnttype/mcnttfactory.cxx | 3 +-- dtrans/source/generic/generic_clipboard.cxx | 3 +-- dtrans/source/win32/clipb/WinClipboard.cxx | 3 +-- dtrans/source/win32/ftransl/ftransl.cxx | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'dtrans') diff --git a/dtrans/source/cnttype/mcnttfactory.cxx b/dtrans/source/cnttype/mcnttfactory.cxx index 95010d51e7b4..295d9d3aa4d0 100644 --- a/dtrans/source/cnttype/mcnttfactory.cxx +++ b/dtrans/source/cnttype/mcnttfactory.cxx @@ -38,8 +38,7 @@ namespace { Sequence< OUString > SAL_CALL MimeContentTypeFactory_getSupportedServiceNames( ) { - Sequence< OUString > aRet(1); - aRet[0] = "com.sun.star.datatransfer.MimeContentTypeFactory"; + Sequence< OUString > aRet { "com.sun.star.datatransfer.MimeContentTypeFactory" }; return aRet; } } diff --git a/dtrans/source/generic/generic_clipboard.cxx b/dtrans/source/generic/generic_clipboard.cxx index 31eed17cebd6..13061dc3cf09 100644 --- a/dtrans/source/generic/generic_clipboard.cxx +++ b/dtrans/source/generic/generic_clipboard.cxx @@ -149,8 +149,7 @@ void SAL_CALL GenericClipboard::removeClipboardListener( const Reference< XClipb Sequence< OUString > SAL_CALL GenericClipboard_getSupportedServiceNames() { - Sequence< OUString > aRet(1); - aRet[0] = "com.sun.star.datatransfer.clipboard.GenericClipboard"; + Sequence< OUString > aRet { "com.sun.star.datatransfer.clipboard.GenericClipboard" }; return aRet; } diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx index 06d57509d896..3deada710780 100644 --- a/dtrans/source/win32/clipb/WinClipboard.cxx +++ b/dtrans/source/win32/clipb/WinClipboard.cxx @@ -44,8 +44,7 @@ namespace { Sequence< OUString > SAL_CALL WinClipboard_getSupportedServiceNames() { - Sequence< OUString > aRet(1); - aRet[0] = "com.sun.star.datatransfer.clipboard.SystemClipboard"; + Sequence< OUString > aRet { "com.sun.star.datatransfer.clipboard.SystemClipboard" }; return aRet; } } diff --git a/dtrans/source/win32/ftransl/ftransl.cxx b/dtrans/source/win32/ftransl/ftransl.cxx index b31e16f0fe59..968c2f60a9eb 100644 --- a/dtrans/source/win32/ftransl/ftransl.cxx +++ b/dtrans/source/win32/ftransl/ftransl.cxx @@ -64,8 +64,7 @@ namespace MODULE_PRIVATE { Sequence< OUString > SAL_CALL DataFormatTranslator_getSupportedServiceNames( ) { - Sequence< OUString > aRet(1); - aRet[0] = "com.sun.star.datatransfer.DataFormatTranslator"; + Sequence< OUString > aRet { "com.sun.star.datatransfer.DataFormatTranslator" }; return aRet; } } -- cgit