diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-26 14:37:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-11-26 16:45:19 +0100 |
commit | 9f90050aa17a76adef94b4ba2568db2da1bd1b9b (patch) | |
tree | 059ed03f013271da708107f2a3782e331ce44288 /dtrans | |
parent | fa42338091ecd96b637ea52984c2642b89966f44 (diff) |
loplugin:consttobool (clang-cl)
Change-Id: I81fea38cd737a8be74e6ece333ca37cc434a1c33
Reviewed-on: https://gerrit.libreoffice.org/83765
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dtrans')
-rw-r--r-- | dtrans/source/win32/clipb/MtaOleClipb.cxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/DTransHelper.hxx | 8 |
2 files changed, 6 insertions, 6 deletions
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 <objidl.h> #include <WinClip.hxx> -#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( ) ); |