diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-14 16:58:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-16 14:19:27 +0000 |
commit | 3b02c40a404f5a7a635e6c936dc8362b8911edb8 (patch) | |
tree | eb217f69acb18b49d83c928a35c1279d7e7c1e4b /include/comphelper | |
parent | 227d3d09910232545d41975e9b5af9863257bc37 (diff) |
clang-cl loplugin: comphelper
Change-Id: Icde27eeeb21e9049630028e81af10edc1ba8ae04
Reviewed-on: https://gerrit.libreoffice.org/29876
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/windowserrorstring.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/comphelper/windowserrorstring.hxx b/include/comphelper/windowserrorstring.hxx index d47ff659eb44..f4c67aa39aec 100644 --- a/include/comphelper/windowserrorstring.hxx +++ b/include/comphelper/windowserrorstring.hxx @@ -21,12 +21,12 @@ inline OUString WindowsErrorString(DWORD nErrorCode) LPWSTR pMsgBuf; if (FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, - NULL, + nullptr, nErrorCode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPWSTR)&pMsgBuf, + reinterpret_cast<LPWSTR>(&pMsgBuf), 0, - NULL) == 0) + nullptr) == 0) return OUString::number(nErrorCode, 16); if (pMsgBuf[wcslen(pMsgBuf)-1] == '\n') |