Replace remaining uses of NULL with nullptr

I did a mass conversion in 5d74f120fc57 (October 2014) but these few
must have shown up after.

This excludes code in third_party.

Change-Id: I61cb0273804c0424904a516ed5ab735548b6b9cb
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2166725
Reviewed-by: Justin Cohen <justincohen@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Mark Mentovai 2020-04-25 23:35:08 -04:00 committed by Commit Bot
parent be57546fea
commit 29b1688c11
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ base::FilePath ScopedTempDir::CreateTemporaryDirectory() {
// the one we generate exists, keep trying another path name until we reach // the one we generate exists, keep trying another path name until we reach
// some limit. // some limit.
base::FilePath path_to_create = GenerateCandidateName(); base::FilePath path_to_create = GenerateCandidateName();
if (CreateDirectory(path_to_create.value().c_str(), NULL)) if (CreateDirectory(path_to_create.value().c_str(), nullptr))
return path_to_create; return path_to_create;
} }

View File

@ -28,7 +28,7 @@ bool IsSocketHandle(HANDLE file) {
// FILE_TYPE_PIPE means that it's a socket, a named pipe, or an anonymous // FILE_TYPE_PIPE means that it's a socket, a named pipe, or an anonymous
// pipe. If we are unable to retrieve the pipe information, we know it's a // pipe. If we are unable to retrieve the pipe information, we know it's a
// socket. // socket.
return !GetNamedPipeInfo(file, NULL, NULL, NULL, NULL); return !GetNamedPipeInfo(file, nullptr, nullptr, nullptr, nullptr);
} }
return false; return false;
} }

View File

@ -97,7 +97,7 @@ std::string WinHttpMessage(const char* extra) {
0, 0,
msgbuf, msgbuf,
static_cast<DWORD>(base::size(msgbuf)), static_cast<DWORD>(base::size(msgbuf)),
NULL); nullptr);
if (!len) { if (!len) {
return base::StringPrintf("%s: error 0x%lx while retrieving error 0x%lx", return base::StringPrintf("%s: error 0x%lx while retrieving error 0x%lx",
extra, extra,