Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(873)

Unified Diff: mojo/public/cpp/bindings/lib/message.cc

Issue 613053002: Mojo: NULL -> nullptr in mojo/public/cpp/bindings and also for the bindings generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/lib/message.cc
diff --git a/mojo/public/cpp/bindings/lib/message.cc b/mojo/public/cpp/bindings/lib/message.cc
index 455d90ee6463e47e0e434bbaab05e67760a6e0e3..cec60c04e52488933a49beaa10f988879f94774d 100644
--- a/mojo/public/cpp/bindings/lib/message.cc
+++ b/mojo/public/cpp/bindings/lib/message.cc
@@ -14,7 +14,7 @@ namespace mojo {
Message::Message()
: data_num_bytes_(0),
- data_(NULL) {
+ data_(nullptr) {
}
Message::~Message() {
@@ -52,9 +52,9 @@ MojoResult ReadAndDispatchMessage(MessagePipeHandle handle,
uint32_t num_bytes = 0, num_handles = 0;
rv = ReadMessageRaw(handle,
- NULL,
+ nullptr,
&num_bytes,
- NULL,
+ nullptr,
&num_handles,
MOJO_READ_MESSAGE_FLAG_NONE);
if (rv != MOJO_RESULT_RESOURCE_EXHAUSTED)
@@ -68,7 +68,7 @@ MojoResult ReadAndDispatchMessage(MessagePipeHandle handle,
message.mutable_data(),
&num_bytes,
message.mutable_handles()->empty()
- ? NULL
+ ? nullptr
: reinterpret_cast<MojoHandle*>(
&message.mutable_handles()->front()),
&num_handles,
« no previous file with comments | « mojo/public/cpp/bindings/lib/interface_ptr_internal.h ('k') | mojo/public/cpp/bindings/lib/message_header_validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698