summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-18 10:04:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-18 10:04:43 +0200
commit454c4380a4ab5574d5454d9659b7167845823c48 (patch)
treede5de5472916673325653e06072d95efd4254cd5 /comphelper
parentdd066778de7d367b8990874d5472374fa5577b90 (diff)
loplugin:cstylecast (clang-cl)
Change-Id: Id3f66842829a4b86f7980f0c1cbfe6e56e958e9c
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/windows/windows_process.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/windows/windows_process.cxx b/comphelper/source/windows/windows_process.cxx
index 1a404785536a..c9a41f5fc5d6 100644
--- a/comphelper/source/windows/windows_process.cxx
+++ b/comphelper/source/windows/windows_process.cxx
@@ -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)");