sal/osl/w32/process.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 666382e3407bee21c0140863ccc885d2077d8f33
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Mar 24 10:49:30 2017 +0100

    Various loplugin warnings (clang-cl)
    
    Change-Id: I7969250f330d2df02c4ea909115b3028fdc36223

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 */
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to