diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-21 12:52:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-21 13:43:11 +0200 |
commit | b2a574ec54c7e34789b401a540ff14511bf583ce (patch) | |
tree | 9387442f88605f52777d2c36894842f25603160d /dtrans | |
parent | 9cbb4052d11d8fc5b408cfe75ddb5305f9a7461b (diff) |
simplify some getSupportedServiceNames
Change-Id: I81195505d6006b6587f7b98c1545919083f0e588
Reviewed-on: https://gerrit.libreoffice.org/74497
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dtrans')
-rw-r--r-- | dtrans/source/win32/dnd/source.cxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dnd/target.cxx | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx index ac5f18382819..7851296c7fd7 100644 --- a/dtrans/source/win32/dnd/source.cxx +++ b/dtrans/source/win32/dnd/source.cxx @@ -288,9 +288,7 @@ sal_Bool SAL_CALL DragSource::supportsService( const OUString& ServiceName ) Sequence< OUString > SAL_CALL DragSource::getSupportedServiceNames( ) { - OUString names[1]= {OUString(DNDSOURCE_SERVICE_NAME)}; - - return Sequence<OUString>(names, 1); + return { DNDSOURCE_SERVICE_NAME }; } /** This function is called as extra thread from diff --git a/dtrans/source/win32/dnd/target.cxx b/dtrans/source/win32/dnd/target.cxx index eed51da71ed4..c517079897d9 100644 --- a/dtrans/source/win32/dnd/target.cxx +++ b/dtrans/source/win32/dnd/target.cxx @@ -258,8 +258,7 @@ sal_Bool SAL_CALL DropTarget::supportsService( const OUString& ServiceName ) Sequence< OUString > SAL_CALL DropTarget::getSupportedServiceNames( ) { - OUString names[1]= {OUString(DNDTARGET_SERVICE_NAME)}; - return Sequence<OUString>(names, 1); + return { DNDTARGET_SERVICE_NAME }; } // XDropTarget |