summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/win32/dnd/source.cxx4
-rw-r--r--dtrans/source/win32/dnd/target.cxx3
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