diff options
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" }; } } |