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

Side by Side Diff: mojo/public/cpp/system/message_pipe.h

Issue 612243002: Mojo: NULL -> nullptr in mojo/public/cpp outside of bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « mojo/public/cpp/system/handle.h ('k') | mojo/public/cpp/system/tests/core_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_PUBLIC_CPP_SYSTEM_MESSAGE_PIPE_H_ 5 #ifndef MOJO_PUBLIC_CPP_SYSTEM_MESSAGE_PIPE_H_
6 #define MOJO_PUBLIC_CPP_SYSTEM_MESSAGE_PIPE_H_ 6 #define MOJO_PUBLIC_CPP_SYSTEM_MESSAGE_PIPE_H_
7 7
8 #include <assert.h> 8 #include <assert.h>
9 9
10 #include "mojo/public/c/system/message_pipe.h" 10 #include "mojo/public/c/system/message_pipe.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 MessagePipe(); 78 MessagePipe();
79 explicit MessagePipe(const MojoCreateMessagePipeOptions& options); 79 explicit MessagePipe(const MojoCreateMessagePipeOptions& options);
80 ~MessagePipe(); 80 ~MessagePipe();
81 81
82 ScopedMessagePipeHandle handle0; 82 ScopedMessagePipeHandle handle0;
83 ScopedMessagePipeHandle handle1; 83 ScopedMessagePipeHandle handle1;
84 }; 84 };
85 85
86 inline MessagePipe::MessagePipe() { 86 inline MessagePipe::MessagePipe() {
87 MojoResult result MOJO_ALLOW_UNUSED = 87 MojoResult result MOJO_ALLOW_UNUSED =
88 CreateMessagePipe(NULL, &handle0, &handle1); 88 CreateMessagePipe(nullptr, &handle0, &handle1);
89 assert(result == MOJO_RESULT_OK); 89 assert(result == MOJO_RESULT_OK);
90 } 90 }
91 91
92 inline MessagePipe::MessagePipe(const MojoCreateMessagePipeOptions& options) { 92 inline MessagePipe::MessagePipe(const MojoCreateMessagePipeOptions& options) {
93 MojoResult result MOJO_ALLOW_UNUSED = 93 MojoResult result MOJO_ALLOW_UNUSED =
94 CreateMessagePipe(&options, &handle0, &handle1); 94 CreateMessagePipe(&options, &handle0, &handle1);
95 assert(result == MOJO_RESULT_OK); 95 assert(result == MOJO_RESULT_OK);
96 } 96 }
97 97
98 inline MessagePipe::~MessagePipe() { 98 inline MessagePipe::~MessagePipe() {
99 } 99 }
100 100
101 } // namespace mojo 101 } // namespace mojo
102 102
103 #endif // MOJO_PUBLIC_CPP_SYSTEM_MESSAGE_PIPE_H_ 103 #endif // MOJO_PUBLIC_CPP_SYSTEM_MESSAGE_PIPE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/system/handle.h ('k') | mojo/public/cpp/system/tests/core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698