summaryrefslogtreecommitdiff
path: root/svtools/source/uno/fpicker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/uno/fpicker.cxx')
-rw-r--r--svtools/source/uno/fpicker.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/uno/fpicker.cxx b/svtools/source/uno/fpicker.cxx
index f1cff13f2242..bed1a8c7f17c 100644
--- a/svtools/source/uno/fpicker.cxx
+++ b/svtools/source/uno/fpicker.cxx
@@ -106,8 +106,7 @@ OUString SAL_CALL FilePicker_getImplementationName()
Sequence< OUString > FilePicker_getSupportedServiceNames()
{
- Sequence< OUString > aServiceNames(1);
- aServiceNames.getArray()[0] = "com.sun.star.ui.dialogs.FilePicker";
+ Sequence< OUString > aServiceNames { "com.sun.star.ui.dialogs.FilePicker" };
return aServiceNames;
}
@@ -176,8 +175,7 @@ OUString SAL_CALL FolderPicker_getImplementationName()
Sequence< OUString > FolderPicker_getSupportedServiceNames()
{
- Sequence< OUString > aServiceNames(1);
- aServiceNames.getArray()[0] = "com.sun.star.ui.dialogs.FolderPicker";
+ Sequence< OUString > aServiceNames { "com.sun.star.ui.dialogs.FolderPicker" };
return aServiceNames;
}