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 /embedserv | |
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 'embedserv')
-rw-r--r-- | embedserv/source/embed/tracker.cxx | 6 | ||||
-rw-r--r-- | embedserv/source/inprocserv/dllentry.cxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/embedserv/source/embed/tracker.cxx b/embedserv/source/embed/tracker.cxx index c17655e45866..a4cd899b6de1 100644 --- a/embedserv/source/embed/tracker.cxx +++ b/embedserv/source/embed/tracker.cxx @@ -254,7 +254,7 @@ void Tracker::Construct() static const WCHAR szWindows[] = L"windows"; static const WCHAR szInplaceBorderWidth[] = L"oleinplaceborderwidth"; afxHandleSize = GetProfileIntW(szWindows, szInplaceBorderWidth, 4); - bInitialized = TRUE; + bInitialized = true; afxCursors[0] = afxCursors[2] = LoadCursor(nullptr,IDC_SIZENWSE); afxCursors[4] = afxCursors[6] = LoadCursor(nullptr,IDC_SIZENS); @@ -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 (;;) @@ -428,7 +428,7 @@ BOOL Tracker::TrackHandle(int nHandle,HWND hWnd,POINT point,HWND hWndClipTo) } OnChangedRect(rectOld); if (msg.message != WM_LBUTTONUP) - bMoved = TRUE; + bMoved = true; } if (m_bFinalErase) goto ExitLoop; diff --git a/embedserv/source/inprocserv/dllentry.cxx b/embedserv/source/inprocserv/dllentry.cxx index 9e0c40601226..f5e46e12fbe2 100644 --- a/embedserv/source/inprocserv/dllentry.cxx +++ b/embedserv/source/inprocserv/dllentry.cxx @@ -100,13 +100,13 @@ 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 ) ) { if ( ERROR_SUCCESS == RegSetValueExW( hKey, L"", 0, REG_SZ, reinterpret_cast<const BYTE*>(pLibrary), nLen*sizeof(wchar_t) ) ) - bLocalSuccess = TRUE; + bLocalSuccess = true; } if ( hKey ) |