summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-25 15:24:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-09-25 15:24:12 +0200
commit3f95a79da8688e2bd0a8631e030c2385abbfc65c (patch)
tree8bb73532abf44dadccbcb1989ff5d6dd50d881c8 /vcl/win
parentfa12f373d89d6d88e99b44298c6798f6ef346735 (diff)
-Werror,-Wint-to-void-pointer-cast, loplugin:cstylecast (clang-cl)
Change-Id: Ib06849499e46eb76f8049fea304f80c771e94098
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/app/saltimer.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/win/app/saltimer.cxx b/vcl/win/app/saltimer.cxx
index eb6993c8659d..1e11a9c4dba5 100644
--- a/vcl/win/app/saltimer.cxx
+++ b/vcl/win/app/saltimer.cxx
@@ -76,7 +76,8 @@ void WinSalTimer::ImplStart( sal_uLong nMS )
// to be 0 and should not hurt; also see
// https://www.microsoft.com/msj/0499/pooling/pooling.aspx
CreateTimerQueueTimer(&m_nTimerId, nullptr, SalTimerProc,
- (void*) m_nTimerStartTicks,
+ reinterpret_cast<void*>(
+ sal_uIntPtr(m_nTimerStartTicks)),
nMS, 0, WT_EXECUTEINTIMERTHREAD | WT_EXECUTEONLYONCE);
}
@@ -131,7 +132,8 @@ static void CALLBACK SalTimerProc(PVOID data, BOOLEAN)
// that happened during execution of the callback later directly from
// the message queue
BOOL const ret = PostMessageW(GetSalData()->mpFirstInstance->mhComWnd,
- SAL_MSG_TIMER_CALLBACK, (WPARAM) data, 0);
+ SAL_MSG_TIMER_CALLBACK,
+ reinterpret_cast<WPARAM>(data), 0);
#if OSL_DEBUG_LEVEL > 0
if (0 == ret) // SEH prevents using SAL_WARN here?
fputs("ERROR: PostMessage() failed!\n", stderr);