summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-19 15:15:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-19 21:34:30 +0100
commit5a11fe87a6f1507149a0965aa740dcdf4ccef3c3 (patch)
tree3f3e788a0e54c94e980bd61e4466d4d6e2c34415 /dtrans
parent77d301f5e40e4f0fb4a127b8b6361a0fb1b1dbd9 (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 'dtrans')
-rw-r--r--dtrans/source/win32/clipb/MtaOleClipb.cxx8
-rw-r--r--dtrans/source/win32/dtobj/DTransHelper.hxx2
2 files changed, 5 insertions, 5 deletions
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;
};