diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-29 08:32:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-29 08:32:43 +0200 |
commit | 52403e5087d68748f58eb4bf2b94eba7fbf21540 (patch) | |
tree | 60b40f767dc1b0437b3a61f2070095a71ddd9d9e /sal | |
parent | 9420391cc9f6af2a16c1db72596f277439df29e9 (diff) |
loplugin:cstylecast/nullptr (clang-cl)
Change-Id: I04be0f4fe8c98909b37586080096ee05341f956f
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/socket.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/w32/socket.cxx b/sal/osl/w32/socket.cxx index b1d8af3a9970..97c8ffee2987 100644 --- a/sal/osl/w32/socket.cxx +++ b/sal/osl/w32/socket.cxx @@ -793,9 +793,9 @@ oslSocket SAL_CALL osl_createSocket( int nErrno = WSAGetLastError(); wchar_t *sErr = nullptr; FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, nErrno, + nullptr, nErrno, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPWSTR)&sErr, 0, NULL); + reinterpret_cast<LPWSTR>(&sErr), 0, nullptr); SAL_WARN("sal.osl", "socket creation failed: (" << nErrno << ") " << sErr); LocalFree(sErr); |