From 5a11fe87a6f1507149a0965aa740dcdf4ccef3c3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 19 Nov 2019 15:15:50 +0100 Subject: 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 --- dtrans/source/win32/clipb/MtaOleClipb.cxx | 8 ++++---- dtrans/source/win32/dtobj/DTransHelper.hxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dtrans') diff --git a/dtrans/source/win32/clipb/MtaOleClipb.cxx b/dtrans/source/win32/clipb/MtaOleClipb.cxx index a3e28806deed..b58f8ea89d24 100644 --- a/dtrans/source/win32/clipb/MtaOleClipb.cxx +++ b/dtrans/source/win32/clipb/MtaOleClipb.cxx @@ -62,8 +62,8 @@ namespace /* private */ const sal_uInt32 MAX_WAITTIME = 10000; // msec const sal_uInt32 MAX_WAIT_SHUTDOWN = 10000; // msec - const BOOL MANUAL_RESET = TRUE; - const BOOL INIT_NONSIGNALED = FALSE; + const bool MANUAL_RESET = TRUE; + const bool INIT_NONSIGNALED = FALSE; /* Cannot use osl conditions because they are blocking without waking up on messages sent by another thread @@ -516,8 +516,8 @@ LRESULT CMtaOleClipboard::sendMessage( UINT msg, WPARAM wParam, LPARAM lParam ) bool CMtaOleClipboard::postMessage( UINT msg, WPARAM wParam, LPARAM lParam ) { - BOOL const ret = PostMessageW(m_hwndMtaOleReqWnd, msg, wParam, lParam); - SAL_WARN_IF(0 == ret, "dtrans", "ERROR: PostMessage() failed!"); + bool const ret = PostMessageW(m_hwndMtaOleReqWnd, msg, wParam, lParam); + SAL_WARN_IF(!ret, "dtrans", "ERROR: PostMessage() failed!"); return ret; } diff --git a/dtrans/source/win32/dtobj/DTransHelper.hxx b/dtrans/source/win32/dtobj/DTransHelper.hxx index e003c2a70629..89f8e483d1b7 100644 --- a/dtrans/source/win32/dtobj/DTransHelper.hxx +++ b/dtrans/source/win32/dtobj/DTransHelper.hxx @@ -161,7 +161,7 @@ public: private: HGLOBAL m_hGlob; - BOOL m_bIsLocked; + bool m_bIsLocked; LPVOID m_pGlobMem; }; -- cgit