style fixes

This commit is contained in:
Günter Obiltschnig
2014-08-14 19:21:20 +02:00
parent d0ebf0bc76
commit d14be5730a
3 changed files with 30 additions and 30 deletions

View File

@@ -258,26 +258,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle) bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
{ {
BOOL fRC = true; bool result = true;
DWORD exit_code; DWORD exitCode;
GetExitCodeProcess(handle.process(), &exit_code); GetExitCodeProcess(handle.process(), &exitCode);
if (exit_code != STILL_ACTIVE) fRC = false; if (exitCode != STILL_ACTIVE) result = false;
return fRC; return result;
} }
bool ProcessImpl::isRunningImpl(PIDImpl pid) bool ProcessImpl::isRunningImpl(PIDImpl pid)
{ {
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid); HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
BOOL fRC = true; bool result = true;
DWORD exit_code; DWORD exitCode;
GetExitCodeProcess(hProc, &exit_code); GetExitCodeProcess(hProc, &exitCode);
if (exit_code != STILL_ACTIVE) fRC = false; if (exitCode != STILL_ACTIVE) result = false;
return fRC; return result;
} }

View File

@@ -264,26 +264,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle) bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
{ {
BOOL fRC = true; bool result = true;
DWORD exit_code; DWORD exitCode;
GetExitCodeProcess(handle.process(), &exit_code); GetExitCodeProcess(handle.process(), &exitCode);
if (exit_code != STILL_ACTIVE) fRC = false; if (exitCode != STILL_ACTIVE) result = false;
return fRC; return result;
} }
bool ProcessImpl::isRunningImpl(PIDImpl pid) bool ProcessImpl::isRunningImpl(PIDImpl pid)
{ {
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid); HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
BOOL fRC = true; bool result = true;
DWORD exit_code; DWORD exitCode;
GetExitCodeProcess(hProc, &exit_code); GetExitCodeProcess(hProc, &exitCode);
if (exit_code != STILL_ACTIVE) fRC = false; if (exitCode != STILL_ACTIVE) result = false;
return fRC; return result;
} }

View File

@@ -189,26 +189,26 @@ void ProcessImpl::killImpl(PIDImpl pid)
bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle) bool ProcessImpl::isRunningImpl(const ProcessHandleImpl& handle)
{ {
BOOL fRC = true; bool result = true;
DWORD exit_code; DWORD exitCode;
GetExitCodeProcess(handle.process(), &exit_code); GetExitCodeProcess(handle.process(), &exitCode);
if (exit_code != STILL_ACTIVE) fRC = false; if (exitCode != STILL_ACTIVE) result = false;
return fRC; return result;
} }
bool ProcessImpl::isRunningImpl(PIDImpl pid) bool ProcessImpl::isRunningImpl(PIDImpl pid)
{ {
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid); HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
BOOL fRC = true; bool result = true;
DWORD exit_code; DWORD exitCode;
GetExitCodeProcess(hProc, &exit_code); GetExitCodeProcess(hProc, &exitCode);
if (exit_code != STILL_ACTIVE) fRC = false; if (exitCode != STILL_ACTIVE) result = false;
return fRC; return result;
} }