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

Unified Diff: mojo/public/cpp/bindings/lib/validation_errors.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
« no previous file with comments | « mojo/public/cpp/bindings/lib/validation_errors.h ('k') | mojo/public/cpp/bindings/message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/validation_errors.cc
diff --git a/mojo/public/cpp/bindings/lib/validation_errors.cc b/mojo/public/cpp/bindings/lib/validation_errors.cc
index 61f233f8d32e169eebb407b5103da0ae6fc370cb..47bcf028a93bcad17fe90dafa27da678ff7c6554 100644
--- a/mojo/public/cpp/bindings/lib/validation_errors.cc
+++ b/mojo/public/cpp/bindings/lib/validation_errors.cc
@@ -10,8 +10,9 @@ namespace mojo {
namespace internal {
namespace {
-ValidationErrorObserverForTesting* g_validation_error_observer = NULL;
-SerializationWarningObserverForTesting* g_serialization_warning_observer = NULL;
+ValidationErrorObserverForTesting* g_validation_error_observer = nullptr;
+SerializationWarningObserverForTesting* g_serialization_warning_observer =
+ nullptr;
} // namespace
@@ -63,7 +64,7 @@ ValidationErrorObserverForTesting::ValidationErrorObserverForTesting()
ValidationErrorObserverForTesting::~ValidationErrorObserverForTesting() {
MOJO_DCHECK(g_validation_error_observer == this);
- g_validation_error_observer = NULL;
+ g_validation_error_observer = nullptr;
}
bool ReportSerializationWarning(ValidationError error) {
@@ -84,7 +85,7 @@ SerializationWarningObserverForTesting::SerializationWarningObserverForTesting()
SerializationWarningObserverForTesting::
~SerializationWarningObserverForTesting() {
MOJO_DCHECK(g_serialization_warning_observer == this);
- g_serialization_warning_observer = NULL;
+ g_serialization_warning_observer = nullptr;
}
} // namespace internal
« no previous file with comments | « mojo/public/cpp/bindings/lib/validation_errors.h ('k') | mojo/public/cpp/bindings/message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698