Kaydet (Commit) 454c4380 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast (clang-cl)

Change-Id: Id3f66842829a4b86f7980f0c1cbfe6e56e958e9c
üst dd066778
......@@ -143,7 +143,7 @@ MakeCommandLine(int argc, wchar_t **argv)
if (len == 0)
len = 1;
wchar_t *s = (wchar_t*) malloc(len * sizeof(wchar_t));
wchar_t *s = static_cast<wchar_t*>(malloc(len * sizeof(wchar_t)));
if (!s)
return nullptr;
......@@ -259,7 +259,7 @@ WinLaunchChild(const wchar_t *exePath,
nullptr,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) &lpMsgBuf,
reinterpret_cast<LPTSTR>(&lpMsgBuf),
0,
nullptr);
wprintf(L"Error restarting: %s\n", lpMsgBuf ? lpMsgBuf : L"(null)");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment