summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-27 10:38:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-27 13:16:46 +0100
commit2a78e9ddafcfa644e771bb2fc47d5ca23f46af59 (patch)
tree44d9688f35431cc55c13f8f9b15fb8065bc91bdd /vcl
parenta93b47c0a788771cc761f37e610985cbeb971a1e (diff)
Windows InterlockedIncrement/Decrement use LONG
Change-Id: Ib3e8e89332399eba443d9ff291f694cfceb95af1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106726 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/dtrans/source.cxx2
-rw-r--r--vcl/win/dtrans/source.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/win/dtrans/source.cxx b/vcl/win/dtrans/source.cxx
index 93d94e94e4c7..1e76dc2250f5 100644
--- a/vcl/win/dtrans/source.cxx
+++ b/vcl/win/dtrans/source.cxx
@@ -160,7 +160,7 @@ void SAL_CALL DragSource::startDrag(
// Allow only one running dnd operation at a time,
// see XDragSource documentation
- long cnt = InterlockedIncrement(&m_RunningDndOperationCount);
+ LONG cnt = InterlockedIncrement(&m_RunningDndOperationCount);
if (1 == cnt)
{
diff --git a/vcl/win/dtrans/source.hxx b/vcl/win/dtrans/source.hxx
index 876f5895224a..44244839869f 100644
--- a/vcl/win/dtrans/source.hxx
+++ b/vcl/win/dtrans/source.hxx
@@ -65,7 +65,7 @@ class DragSource:
const Reference<XDragSourceListener >& listener);
public:
- long m_RunningDndOperationCount;
+ LONG m_RunningDndOperationCount;
public:
// only valid for one dnd operation