From 9f90050aa17a76adef94b4ba2568db2da1bd1b9b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 26 Nov 2019 14:37:20 +0100 Subject: loplugin:consttobool (clang-cl) Change-Id: I81fea38cd737a8be74e6ece333ca37cc434a1c33 Reviewed-on: https://gerrit.libreoffice.org/83765 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- dtrans/source/win32/clipb/MtaOleClipb.cxx | 4 ++-- dtrans/source/win32/dtobj/DTransHelper.hxx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'dtrans/source') diff --git a/dtrans/source/win32/clipb/MtaOleClipb.cxx b/dtrans/source/win32/clipb/MtaOleClipb.cxx index 5ab8e1adb9a9..fc8a16d86d0c 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 diff --git a/dtrans/source/win32/dtobj/DTransHelper.hxx b/dtrans/source/win32/dtobj/DTransHelper.hxx index 89f8e483d1b7..d677184fb0ee 100644 --- a/dtrans/source/win32/dtobj/DTransHelper.hxx +++ b/dtrans/source/win32/dtobj/DTransHelper.hxx @@ -27,7 +27,7 @@ #include #include -#define AUTO_INIT TRUE +#define AUTO_INIT true // a helper class to manage a global memory area, the clients can write // into the global memory area and extract the handle to the global mem @@ -95,7 +95,7 @@ public: explicit CRawHGlobalPtr( HGLOBAL hGlob ) : m_hGlob( hGlob ), - m_bIsLocked( FALSE ), + m_bIsLocked( false ), m_pGlobMem( nullptr ) { } @@ -104,7 +104,7 @@ public: explicit CRawHGlobalPtr( const CStgTransferHelper& theHGlobalHelper ) : m_hGlob( theHGlobalHelper.getHGlobal( ) ), - m_bIsLocked( FALSE ), + m_bIsLocked( false ), m_pGlobMem( nullptr ) { } @@ -137,7 +137,7 @@ public: BOOL Unlock( ) { GlobalUnlock( m_hGlob ); - m_bIsLocked = FALSE; + m_bIsLocked = false; m_pGlobMem = nullptr; return ( NO_ERROR == GetLastError( ) ); -- cgit