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 /embedserv | |
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 'embedserv')
-rw-r--r-- | embedserv/source/embed/docholder.cxx | 2 | ||||
-rw-r--r-- | embedserv/source/embed/tracker.cxx | 4 | ||||
-rw-r--r-- | embedserv/source/inc/docholder.hxx | 2 | ||||
-rw-r--r-- | embedserv/source/inprocserv/advisesink.hxx | 2 | ||||
-rw-r--r-- | embedserv/source/inprocserv/dllentry.cxx | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx index 96659ca754fb..4db6abd25235 100644 --- a/embedserv/source/embed/docholder.cxx +++ b/embedserv/source/embed/docholder.cxx @@ -883,7 +883,7 @@ void DocumentHolder::resizeWin( const SIZEL& rNewSize ) POINT aOldOffset; aOldOffset.x = aOldSize.cx; aOldOffset.y = aOldSize.cy; - BOOL bIsOk = LPtoDP( hdc, &aOldOffset, 1 ); + bool bIsOk = LPtoDP( hdc, &aOldOffset, 1 ); POINT aNewOffset; aNewOffset.x = rNewSize.cx; diff --git a/embedserv/source/embed/tracker.cxx b/embedserv/source/embed/tracker.cxx index 233ff0bb21ab..c17655e45866 100644 --- a/embedserv/source/embed/tracker.cxx +++ b/embedserv/source/embed/tracker.cxx @@ -223,7 +223,7 @@ static int afxHandleSize = 0; void Tracker::Construct() { - static BOOL bInitialized = false; + static bool bInitialized = false; if (!bInitialized) { if (afxHatchBrush == nullptr) @@ -385,7 +385,7 @@ BOOL Tracker::TrackHandle(int nHandle,HWND hWnd,POINT point,HWND hWndClipTo) } RECT rectOld; - BOOL bMoved = FALSE; + bool bMoved = FALSE; // get messages until capture lost or cancelled/accepted for (;;) diff --git a/embedserv/source/inc/docholder.hxx b/embedserv/source/inc/docholder.hxx index 1bd9a8746323..7cb85af0fbf6 100644 --- a/embedserv/source/inc/docholder.hxx +++ b/embedserv/source/inc/docholder.hxx @@ -53,7 +53,7 @@ class DocumentHolder : private: ::osl::Mutex m_aMutex; - BOOL m_bAllowInPlace; + bool m_bAllowInPlace; LPOLEINPLACESITE m_pIOleIPSite; LPOLEINPLACEFRAME m_pIOleIPFrame; LPOLEINPLACEUIWINDOW m_pIOleIPUIWindow; diff --git a/embedserv/source/inprocserv/advisesink.hxx b/embedserv/source/inprocserv/advisesink.hxx index 4d3862c9a460..e1bc55a4c0a6 100644 --- a/embedserv/source/inprocserv/advisesink.hxx +++ b/embedserv/source/inprocserv/advisesink.hxx @@ -70,7 +70,7 @@ public: void SetRegID( DWORD nRegID ) { m_nRegID = nRegID; } DWORD GetRegID() { return m_nRegID; } - BOOL IsOleAdvise() { return m_bObjectAdvise; } + bool IsOleAdvise() { return m_bObjectAdvise; } DWORD GetDataAdviseFlag() { return m_nDataRegFlag; } DWORD GetViewAdviseFlag() { return m_nViewRegFlag; } diff --git a/embedserv/source/inprocserv/dllentry.cxx b/embedserv/source/inprocserv/dllentry.cxx index a79b23b22972..9e0c40601226 100644 --- a/embedserv/source/inprocserv/dllentry.cxx +++ b/embedserv/source/inprocserv/dllentry.cxx @@ -100,7 +100,7 @@ namespace { int nGuidLen = GetStringFromClassID( *guidList[nInd], &pSubKey[23], 38 ); - BOOL bLocalSuccess = FALSE; + bool bLocalSuccess = FALSE; if ( nGuidLen == 38 ) { if ( ERROR_SUCCESS == RegOpenKeyW( HKEY_LOCAL_MACHINE, pSubKey, &hKey ) ) |