diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-08-17 16:08:25 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-17 17:03:14 +0200 |
commit | 2674cf29a87c8f56ccf9f491c496e36ce4e8e367 (patch) | |
tree | a7b5d05d7032138f673000c9fb584ea850caa0d6 /fpicker | |
parent | b1d8262dad9939ffbf38f288d0ec60727e3742fb (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in forms and fpicker
Change-Id: Ifa931bed6de434a2ee183c78e8e1be852ca06a56
Reviewed-on: https://gerrit.libreoffice.org/77637
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/SalAquaFilePicker.mm | 8 | ||||
-rw-r--r-- | fpicker/source/aqua/SalAquaFolderPicker.mm | 5 | ||||
-rw-r--r-- | fpicker/source/win32/VistaFilePicker.cxx | 9 |
3 files changed, 8 insertions, 14 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.mm b/fpicker/source/aqua/SalAquaFilePicker.mm index e0137e0d665d..ac54fca0cc98 100644 --- a/fpicker/source/aqua/SalAquaFilePicker.mm +++ b/fpicker/source/aqua/SalAquaFilePicker.mm @@ -65,11 +65,9 @@ namespace { uno::Sequence<OUString> FilePicker_getSupportedServiceNames() { - uno::Sequence<OUString> aRet(3); - aRet[0] = "com.sun.star.ui.dialogs.FilePicker"; - aRet[1] = "com.sun.star.ui.dialogs.SystemFilePicker"; - aRet[2] = "com.sun.star.ui.dialogs.AquaFilePicker"; - return aRet; + return { "com.sun.star.ui.dialogs.FilePicker", + "com.sun.star.ui.dialogs.SystemFilePicker", + "com.sun.star.ui.dialogs.AquaFilePicker" }; } } diff --git a/fpicker/source/aqua/SalAquaFolderPicker.mm b/fpicker/source/aqua/SalAquaFolderPicker.mm index b47d8138018d..3d2259cbcdbf 100644 --- a/fpicker/source/aqua/SalAquaFolderPicker.mm +++ b/fpicker/source/aqua/SalAquaFolderPicker.mm @@ -53,10 +53,7 @@ namespace // controlling event notifications uno::Sequence<OUString> FolderPicker_getSupportedServiceNames() { - uno::Sequence<OUString> aRet(2); - aRet[0] = "com.sun.star.ui.dialogs.SystemFolderPicker"; - aRet[1] = "com.sun.star.ui.dialogs.AquaFolderPicker"; - return aRet; + return { "com.sun.star.ui.dialogs.SystemFolderPicker", "com.sun.star.ui.dialogs.AquaFolderPicker" }; } } diff --git a/fpicker/source/win32/VistaFilePicker.cxx b/fpicker/source/win32/VistaFilePicker.cxx index c100dd5b1885..1c888b44a6d5 100644 --- a/fpicker/source/win32/VistaFilePicker.cxx +++ b/fpicker/source/win32/VistaFilePicker.cxx @@ -47,11 +47,10 @@ namespace { css::uno::Sequence< OUString > VistaFilePicker_getSupportedServiceNames() { - css::uno::Sequence< OUString > aRet(3); - aRet[0] = "com.sun.star.ui.dialogs.FilePicker"; - aRet[1] = "com.sun.star.ui.dialogs.SystemFilePicker"; - aRet[2] = "com.sun.star.ui.dialogs.SystemFolderPicker"; - return aRet; + return { + "com.sun.star.ui.dialogs.FilePicker", + "com.sun.star.ui.dialogs.SystemFilePicker", + "com.sun.star.ui.dialogs.SystemFolderPicker" }; } } |