summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 08:43:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 10:13:08 +0000
commit8e234c5b7d5bae66c544e581bee5770f3f83dd81 (patch)
tree7d78f03ce2231de4f727d1135449aeb8cba74e99 /dtrans
parent3bdd176731c351638f541a37b94094124f3c9f52 (diff)
use initialiser syntax for Sequence<OUString>
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 <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/cnttype/mcnttfactory.cxx3
-rw-r--r--dtrans/source/generic/generic_clipboard.cxx3
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx3
-rw-r--r--dtrans/source/win32/ftransl/ftransl.cxx3
4 files changed, 4 insertions, 8 deletions
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;
}
}