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

Unified Diff: cc/resources/shared_bitmap.cc

Issue 638353002: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr in src/… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formating. 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/shared_bitmap.cc
diff --git a/cc/resources/shared_bitmap.cc b/cc/resources/shared_bitmap.cc
index 31cf245151c7cdab6a3a77092b11863d3a666d60..a4204633323bf28602786938711ff1898cc9bcf6 100644
--- a/cc/resources/shared_bitmap.cc
+++ b/cc/resources/shared_bitmap.cc
@@ -24,7 +24,10 @@ SharedBitmap::SharedBitmap(
uint8* pixels,
const SharedBitmapId& id,
const base::Callback<void(SharedBitmap* bitmap)>& free_callback)
- : memory_(NULL), pixels_(pixels), id_(id), free_callback_(free_callback) {
+ : memory_(nullptr),
+ pixels_(pixels),
+ id_(id),
+ free_callback_(free_callback) {
}
SharedBitmap::~SharedBitmap() { free_callback_.Run(this); }

Powered by Google App Engine
This is Rietveld 408576698