From b2a574ec54c7e34789b401a540ff14511bf583ce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 21 Jun 2019 12:52:29 +0200 Subject: simplify some getSupportedServiceNames Change-Id: I81195505d6006b6587f7b98c1545919083f0e588 Reviewed-on: https://gerrit.libreoffice.org/74497 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dtrans/source/win32/dnd/source.cxx | 4 +--- dtrans/source/win32/dnd/target.cxx | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'dtrans') 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(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(names, 1); + return { DNDTARGET_SERVICE_NAME }; } // XDropTarget -- cgit