diff options
Diffstat (limited to 'dtrans/source/win32/dnd/dndentry.cxx')
-rw-r--r-- | dtrans/source/win32/dnd/dndentry.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dtrans/source/win32/dnd/dndentry.cxx b/dtrans/source/win32/dnd/dndentry.cxx index 6a45cbee6289..c463dee880b5 100644 --- a/dtrans/source/win32/dnd/dndentry.cxx +++ b/dtrans/source/win32/dnd/dndentry.cxx @@ -18,6 +18,7 @@ */ #include <cppuhelper/factory.hxx> +#include <comphelper/processfactory.hxx> #include <com/sun/star/container/XSet.hpp> #include <osl/diagnose.h> @@ -34,13 +35,13 @@ rtl_StandardModuleCount g_moduleCount = MODULE_COUNT_INIT; Reference< XInterface > SAL_CALL createDragSource( const Reference< XMultiServiceFactory >& rServiceManager ) { - DragSource* pSource= new DragSource( rServiceManager ); + DragSource* pSource= new DragSource( comphelper::getComponentContext(rServiceManager) ); return Reference<XInterface>( static_cast<XInitialization*>(pSource), UNO_QUERY); } Reference< XInterface > SAL_CALL createDropTarget( const Reference< XMultiServiceFactory >& rServiceManager ) { - DropTarget* pTarget= new DropTarget( rServiceManager ); + DropTarget* pTarget= new DropTarget( comphelper::getComponentContext(rServiceManager) ); return Reference<XInterface>( static_cast<XInitialization*>(pTarget), UNO_QUERY); } |