diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-02-09 16:27:41 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-02-09 19:41:51 +0100 |
commit | 8f22ce5ea3e62a4837773f6958b8ce7ac96f811a (patch) | |
tree | 255d12a2d154c40cc9b58e25c29f228d73cedacd /embedserv | |
parent | 2d154d55db925dfa20358faa0302d4d942496aee (diff) |
loplugin:fakebool (clang-cl)
But GetMessageW encodes more than true vs. false in its BOOL return value, so
silence the unhelpful loplugin with auto.
Change-Id: I77d053b760e93f918367532c63a6dfe963faa12d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110645
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/embed/tracker.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embedserv/source/embed/tracker.cxx b/embedserv/source/embed/tracker.cxx index dbe114660f61..2a736c39b05f 100644 --- a/embedserv/source/embed/tracker.cxx +++ b/embedserv/source/embed/tracker.cxx @@ -405,7 +405,7 @@ BOOL Tracker::TrackHandle(int nHandle,HWND hWnd,POINT point,HWND hWndClipTo) for (;;) { MSG msg; - BOOL bRet = GetMessageW(&msg, nullptr, 0, 0); + auto const bRet = GetMessageW(&msg, nullptr, 0, 0); SAL_WARN_IF(-1 == bRet, "embedserv", "GetMessageW failed: " << WindowsErrorString(GetLastError())); if (-1 == bRet || 0 == bRet) break; |