From 3f95a79da8688e2bd0a8631e030c2385abbfc65c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 25 Sep 2017 15:24:12 +0200 Subject: -Werror,-Wint-to-void-pointer-cast, loplugin:cstylecast (clang-cl) Change-Id: Ib06849499e46eb76f8049fea304f80c771e94098 --- vcl/win/app/saltimer.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vcl') 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( + 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(data), 0); #if OSL_DEBUG_LEVEL > 0 if (0 == ret) // SEH prevents using SAL_WARN here? fputs("ERROR: PostMessage() failed!\n", stderr); -- cgit