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

Unified Diff: mojo/public/cpp/bindings/lib/array_internal.h

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
« no previous file with comments | « mojo/public/cpp/bindings/interface_ptr.h ('k') | mojo/public/cpp/bindings/lib/array_serialization.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/array_internal.h
diff --git a/mojo/public/cpp/bindings/lib/array_internal.h b/mojo/public/cpp/bindings/lib/array_internal.h
index b512295e40314bf31beaa63a33d92202aa1eb8c9..c49409a3216e253646902887734194dba2025154 100644
--- a/mojo/public/cpp/bindings/lib/array_internal.h
+++ b/mojo/public/cpp/bindings/lib/array_internal.h
@@ -332,11 +332,11 @@ class Array_Data {
typedef typename Traits::ConstRef ConstRef;
typedef ArraySerializationHelper<T, IsHandle<T>::value> Helper;
- // Returns NULL if |num_elements| or the corresponding storage size cannot be
+ // Returns null if |num_elements| or the corresponding storage size cannot be
// stored in uint32_t.
static Array_Data<T>* New(size_t num_elements, Buffer* buf) {
if (num_elements > Traits::kMaxNumElements)
- return NULL;
+ return nullptr;
uint32_t num_bytes =
Traits::GetStorageSize(static_cast<uint32_t>(num_elements));
« no previous file with comments | « mojo/public/cpp/bindings/interface_ptr.h ('k') | mojo/public/cpp/bindings/lib/array_serialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698