summaryrefslogtreecommitdiff
path: root/desktop
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 /desktop
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 'desktop')
-rw-r--r--desktop/source/migration/services/basicmigration.cxx3
-rw-r--r--desktop/source/migration/services/oo3extensionmigration.cxx3
-rw-r--r--desktop/source/migration/services/wordbookmigration.cxx3
3 files changed, 3 insertions, 6 deletions
diff --git a/desktop/source/migration/services/basicmigration.cxx b/desktop/source/migration/services/basicmigration.cxx
index 00631a54551b..457b479fb0a5 100644
--- a/desktop/source/migration/services/basicmigration.cxx
+++ b/desktop/source/migration/services/basicmigration.cxx
@@ -49,8 +49,7 @@ namespace migration
Sequence< OUString > BasicMigration_getSupportedServiceNames()
{
- Sequence< OUString > aNames(1);
- aNames.getArray()[0] = "com.sun.star.migration.Basic";
+ Sequence< OUString > aNames { "com.sun.star.migration.Basic" };
return aNames;
}
diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx
index a3fe11bad7d7..a0e401beb0ef 100644
--- a/desktop/source/migration/services/oo3extensionmigration.cxx
+++ b/desktop/source/migration/services/oo3extensionmigration.cxx
@@ -84,8 +84,7 @@ Sequence< OUString > OO3ExtensionMigration_getSupportedServiceNames()
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
if ( !pNames )
{
- static Sequence< OUString > aNames(1);
- aNames.getArray()[0] = "com.sun.star.migration.Extensions";
+ static Sequence< OUString > aNames { "com.sun.star.migration.Extensions" };
pNames = &aNames;
}
}
diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx
index 4605142530bb..9ae35631b947 100644
--- a/desktop/source/migration/services/wordbookmigration.cxx
+++ b/desktop/source/migration/services/wordbookmigration.cxx
@@ -66,8 +66,7 @@ namespace migration
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
if ( !pNames )
{
- static Sequence< OUString > aNames(1);
- aNames.getArray()[0] = "com.sun.star.migration.Wordbooks";
+ static Sequence< OUString > aNames { "com.sun.star.migration.Wordbooks" };
pNames = &aNames;
}
}