summaryrefslogtreecommitdiff
path: root/dtrans/source/win32/dnd/targetdragcontext.cxx
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2001-07-20 11:41:38 +0000
committerJoachim Lingner <jl@openoffice.org>2001-07-20 11:41:38 +0000
commitfc1657b4734a4a106cf0e3712ca87a5ec0bac092 (patch)
tree589237977c72f7e02c9a9c9fd6a43221d7ba8ad7 /dtrans/source/win32/dnd/targetdragcontext.cxx
parent0f2d7dba2f6552cd911343f4045c79abd1c34c7b (diff)
#89819#
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 )