summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-19 15:21:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-19 18:28:55 +0100
commit5413dcbc6ce27467b81e84a523aaa25fae4db686 (patch)
treec1cdd4f1780bb25b1449e0229d41f8329e8366e6
parent1a83975ff44141595f9bce3088550aee545b6622 (diff)
loplugin:fakebool (clang-cl)
"conversion from 'ATOM' (aka 'unsigned short') to 'BOOL' (aka 'int')"; if the BOOL return value of winwrap::HatchWindowRegister hasn't been used in bad ways in the past, this should have been safe in the past, converting from smaller ATOM to larger BOOL Change-Id: I836aee56384a01ef0d959ecc5dbebc923acb642b Reviewed-on: https://gerrit.libreoffice.org/83209 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--embedserv/source/embed/syswinwrapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/embedserv/source/embed/syswinwrapper.cxx b/embedserv/source/embed/syswinwrapper.cxx
index 4c86532be5e8..7024a054c0b5 100644
--- a/embedserv/source/embed/syswinwrapper.cxx
+++ b/embedserv/source/embed/syswinwrapper.cxx
@@ -117,7 +117,7 @@ BOOL winwrap::HatchWindowRegister(HINSTANCE hInst)
wc.lpszMenuName = nullptr;
wc.lpszClassName = SZCLASSHATCHWIN;
- return RegisterClassW(&wc);
+ return RegisterClassW(&wc) != 0;
}