diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-19 15:15:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-11-19 21:34:30 +0100 |
commit | 5a11fe87a6f1507149a0965aa740dcdf4ccef3c3 (patch) | |
tree | 3f3e788a0e54c94e980bd61e4466d4d6e2c34415 /vcl/win/app | |
parent | 77d301f5e40e4f0fb4a127b8b6361a0fb1b1dbd9 (diff) |
loplugin:fakebool (clang-cl)
...plus follow-up loplugin:implicitboolconversion and loplugin:redundantcast
Change-Id: I9fc9c5cb46fbb50da87ff80af64cb0dfda3e5f90
Reviewed-on: https://gerrit.libreoffice.org/83207
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win/app')
-rw-r--r-- | vcl/win/app/salinst.cxx | 2 | ||||
-rw-r--r-- | vcl/win/app/saltimer.cxx | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx index 1994a274f8b4..2cf9a4f57d9c 100644 --- a/vcl/win/app/salinst.cxx +++ b/vcl/win/app/salinst.cxx @@ -549,7 +549,7 @@ bool WinSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents) LRESULT CALLBACK SalComWndProc( HWND, UINT nMsg, WPARAM wParam, LPARAM lParam, bool& rDef ) { - const BOOL bIsOtherThreadMessage = InSendMessage(); + const bool bIsOtherThreadMessage = InSendMessage(); LRESULT nRet = 0; WinSalInstance *pInst = GetSalData()->mpInstance; WinSalTimer *const pTimer = static_cast<WinSalTimer*>( ImplGetSVData()->maSchedCtx.mpSalTimer ); diff --git a/vcl/win/app/saltimer.cxx b/vcl/win/app/saltimer.cxx index 3aa919ec41b5..5a4760ad5e11 100644 --- a/vcl/win/app/saltimer.cxx +++ b/vcl/win/app/saltimer.cxx @@ -110,9 +110,9 @@ void WinSalTimer::Start( sal_uInt64 nMS ) WinSalInstance *pInst = GetSalData()->mpInstance; if ( pInst && !pInst->IsMainThread() ) { - BOOL const ret = PostMessageW(pInst->mhComWnd, + bool const ret = PostMessageW(pInst->mhComWnd, SAL_MSG_STARTTIMER, 0, static_cast<LPARAM>(tools::Time::GetSystemTicks()) + nMS); - SAL_WARN_IF(0 == ret, "vcl", "ERROR: PostMessage() failed!"); + SAL_WARN_IF(!ret, "vcl", "ERROR: PostMessage() failed!"); } else ImplStart( nMS ); @@ -123,9 +123,9 @@ void WinSalTimer::Stop() WinSalInstance *pInst = GetSalData()->mpInstance; if ( pInst && !pInst->IsMainThread() ) { - BOOL const ret = PostMessageW(pInst->mhComWnd, + bool const ret = PostMessageW(pInst->mhComWnd, SAL_MSG_STOPTIMER, 0, 0); - SAL_WARN_IF(0 == ret, "vcl", "ERROR: PostMessage() failed!"); + SAL_WARN_IF(!ret, "vcl", "ERROR: PostMessage() failed!"); } else ImplStop(); @@ -140,11 +140,11 @@ void CALLBACK SalTimerProc(PVOID data, BOOLEAN) __try { WinSalTimer *pTimer = static_cast<WinSalTimer*>( data ); - BOOL const ret = PostMessageW( + bool const ret = PostMessageW( GetSalData()->mpInstance->mhComWnd, SAL_MSG_TIMER_CALLBACK, static_cast<WPARAM>(pTimer->GetNextEventVersion()), 0 ); #if OSL_DEBUG_LEVEL > 0 - if (0 == ret) // SEH prevents using SAL_WARN here? + if (!ret) // SEH prevents using SAL_WARN here? fputs("ERROR: PostMessage() failed!\n", stderr); #endif } |