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

Unified Diff: components/sync/base/weak_handle.h

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/base/weak_handle.h
diff --git a/components/sync/base/weak_handle.h b/components/sync/base/weak_handle.h
index 54fa9d74969d88c548afa67066f4f7a52686223a..4c326703c51a52b889af836187ee9aff62ac1181 100644
--- a/components/sync/base/weak_handle.h
+++ b/components/sync/base/weak_handle.h
@@ -158,15 +158,15 @@ class WeakHandle {
WeakHandle(const WeakHandle<U>& other) // NOLINT
: core_(other.IsInitialized()
? new internal::WeakHandleCore<T>(other.Get())
- : NULL) {}
+ : nullptr) {}
// Returns true iff this WeakHandle is initialized. Note that being
// initialized isn't a guarantee that the underlying object is still
// alive.
- bool IsInitialized() const { return core_.get() != NULL; }
+ bool IsInitialized() const { return core_.get() != nullptr; }
// Resets to an uninitialized WeakHandle.
- void Reset() { core_ = NULL; }
+ void Reset() { core_ = nullptr; }
// Must be called only on the underlying object's owner thread.
base::WeakPtr<T> Get() const {
« no previous file with comments | « components/sync/base/sync_prefs.cc ('k') | components/sync/device_info/device_info_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698