summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-24 10:49:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-24 10:49:30 +0100
commit666382e3407bee21c0140863ccc885d2077d8f33 (patch)
tree687f707f4d2332d5f8af6babb72ef6fb869d9219 /sal
parent50f3cfc1fa8a178fc93788a17e96b6e8ec236593 (diff)
Various loplugin warnings (clang-cl)
Change-Id: I7969250f330d2df02c4ea909115b3028fdc36223
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/process.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sal/osl/w32/process.cxx b/sal/osl/w32/process.cxx
index 3f0aa66a5724..be617d55adc7 100644
--- a/sal/osl/w32/process.cxx
+++ b/sal/osl/w32/process.cxx
@@ -71,7 +71,7 @@ oslProcessError SAL_CALL osl_terminateProcess(oslProcess Process)
// it's not exactly easy - an example can be found here:
// http://windowsitpro.com/site-files/windowsitpro.com/files/archive/windowsitpro.com/content/content/15989/listing_01.txt
- HANDLE hDupProcess = NULL;
+ HANDLE hDupProcess = nullptr;
// we need to make sure we can create a thread in the remote process, if the handle was created
@@ -97,7 +97,7 @@ oslProcessError SAL_CALL osl_terminateProcess(oslProcess Process)
SAL_WARN("sal.osl", "Could not duplicate process handle, let's hope for the best...");
DWORD dwProcessStatus = 0;
- HANDLE hRemoteThread = NULL;
+ HANDLE hRemoteThread = nullptr;
if (GetExitCodeProcess(hProcess, &dwProcessStatus) && (dwProcessStatus == STILL_ACTIVE))
{
@@ -121,11 +121,11 @@ oslProcessError SAL_CALL osl_terminateProcess(oslProcess Process)
FARPROC pfnExitProc = GetProcAddress(hKernel, "ExitProcess");
hRemoteThread = CreateRemoteThread(
hProcess, /* process handle */
- NULL, /* default security descriptor */
+ nullptr, /* default security descriptor */
0, /* initial size of stack in bytes is default
size for executable */
- (LPTHREAD_START_ROUTINE)pfnExitProc, /* Win32 ExitProcess() */
- (PVOID)uExitCode, /* ExitProcess() dummy return... */
+ reinterpret_cast<LPTHREAD_START_ROUTINE>(pfnExitProc), /* Win32 ExitProcess() */
+ reinterpret_cast<PVOID>(uExitCode), /* ExitProcess() dummy return... */
0, /* value of 0 tells thread to run immediately
after creation */
&dwTID); /* new remote thread's identifier */