diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 09:29:27 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 10:17:36 +0200 |
commit | b49f189d9bfb0b5dca5ac259e6f56b49c2d0d08f (patch) | |
tree | 3c7635acbf2d0f98fd88833f2b4745bd23fe9ef8 /vcl/qt5 | |
parent | a8df5fbaa478fd7f01b2f04a82b4eb63d0dbcc15 (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in vcl
Change-Id: Ibd66e5ed9064612b73d08fac179ee46dc5b0a4b6
Reviewed-on: https://gerrit.libreoffice.org/77656
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5DragAndDrop.cxx | 6 | ||||
-rw-r--r-- | vcl/qt5/Qt5FilePicker.cxx | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/vcl/qt5/Qt5DragAndDrop.cxx b/vcl/qt5/Qt5DragAndDrop.cxx index 2b674e5a8e4f..ea26d5aaeb6f 100644 --- a/vcl/qt5/Qt5DragAndDrop.cxx +++ b/vcl/qt5/Qt5DragAndDrop.cxx @@ -120,8 +120,7 @@ sal_Bool SAL_CALL Qt5DragSource::supportsService(OUString const& ServiceName) css::uno::Sequence<OUString> SAL_CALL Qt5DragSource::getSupportedServiceNames() { - uno::Sequence<OUString> aRet{ "com.sun.star.datatransfer.dnd.Qt5DragSource" }; - return aRet; + return { "com.sun.star.datatransfer.dnd.Qt5DragSource" }; } Qt5DropTarget::Qt5DropTarget() @@ -144,8 +143,7 @@ sal_Bool SAL_CALL Qt5DropTarget::supportsService(OUString const& ServiceName) css::uno::Sequence<OUString> SAL_CALL Qt5DropTarget::getSupportedServiceNames() { - uno::Sequence<OUString> aRet{ "com.sun.star.datatransfer.dnd.Qt5DropTarget" }; - return aRet; + return { "com.sun.star.datatransfer.dnd.Qt5DropTarget" }; } Qt5DropTarget::~Qt5DropTarget() diff --git a/vcl/qt5/Qt5FilePicker.cxx b/vcl/qt5/Qt5FilePicker.cxx index 602ee21569ee..1573f95dd6b5 100644 --- a/vcl/qt5/Qt5FilePicker.cxx +++ b/vcl/qt5/Qt5FilePicker.cxx @@ -70,11 +70,8 @@ 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.Qt5FilePicker"; - return aRet; + return { "com.sun.star.ui.dialogs.FilePicker", "com.sun.star.ui.dialogs.SystemFilePicker", + "com.sun.star.ui.dialogs.Qt5FilePicker" }; } } |