summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/dnd/targetdragcontext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dtrans/source/win32/dnd/targetdragcontext.cxx')
-rw-r--r--dtrans/source/win32/dnd/targetdragcontext.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/dtrans/source/win32/dnd/targetdragcontext.cxx b/dtrans/source/win32/dnd/targetdragcontext.cxx
index 3a480758d768..a6f3c4777795 100644
--- a/dtrans/source/win32/dnd/targetdragcontext.cxx
+++ b/dtrans/source/win32/dnd/targetdragcontext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: targetdragcontext.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: jl $ $Date: 2001-02-12 12:35:19 $
+ * last change: $Author: jl $ $Date: 2001-07-20 12:41:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -59,12 +59,16 @@
*
************************************************************************/
+#ifndef _RTL_UNLOAD_H_
+#include <rtl/unload.h>
+#endif
#include "targetdragcontext.hxx"
-
+extern rtl_StandardModuleCount g_moduleCount;
TargetDragContext::TargetDragContext( DropTarget* p)
{
+ g_moduleCount.modCnt.acquire( &g_moduleCount.modCnt );
m_pDropTarget= p;
p->acquire();
}
@@ -72,6 +76,7 @@ TargetDragContext::TargetDragContext( DropTarget* p)
TargetDragContext::~TargetDragContext()
{
m_pDropTarget->release();
+ g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
}
void SAL_CALL TargetDragContext::acceptDrag( sal_Int8 dragOperation )