refactor: replace remaining NULL
with nullptr
(#40053)
refactor: use nullptr everywhere
This commit is contained in:
parent
9d0e6d09f0
commit
04b2ba84cd
34 changed files with 98 additions and 93 deletions
|
@ -47,16 +47,16 @@ HANDLE GetParentProcessHandle(base::ProcessHandle handle) {
|
|||
ResolveNTFunctionPtr("NtQueryInformationProcess", &NtQueryInformationProcess);
|
||||
if (!NtQueryInformationProcess) {
|
||||
LOG(ERROR) << "Unable to get NtQueryInformationProcess";
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
PROCESS_BASIC_INFORMATION pbi;
|
||||
LONG status =
|
||||
NtQueryInformationProcess(handle, ProcessBasicInformation, &pbi,
|
||||
sizeof(PROCESS_BASIC_INFORMATION), NULL);
|
||||
sizeof(PROCESS_BASIC_INFORMATION), nullptr);
|
||||
if (!NT_SUCCESS(status)) {
|
||||
LOG(ERROR) << "NtQueryInformationProcess failed";
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return ::OpenProcess(PROCESS_ALL_ACCESS, TRUE,
|
||||
|
@ -131,7 +131,7 @@ void RelauncherSynchronizeWithParent() {
|
|||
// Notify the parent process that it can quit now.
|
||||
StringType name = internal::GetWaitEventName(process.Pid());
|
||||
base::win::ScopedHandle wait_event(
|
||||
CreateEvent(NULL, TRUE, FALSE, name.c_str()));
|
||||
CreateEvent(nullptr, TRUE, FALSE, name.c_str()));
|
||||
::SetEvent(wait_event.Get());
|
||||
|
||||
// Wait for parent process to quit.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue