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

Unified Diff: cc/trees/occlusion_tracker_unittest.cc

Issue 640203002: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr [part-… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format fix. 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/trees/occlusion_tracker_unittest.cc
diff --git a/cc/trees/occlusion_tracker_unittest.cc b/cc/trees/occlusion_tracker_unittest.cc
index 6ab339723adb9a177d585f93f9f623d40f771c36..b8ccd112548fa0a222572b354b5e09e3cc0e67e2 100644
--- a/cc/trees/occlusion_tracker_unittest.cc
+++ b/cc/trees/occlusion_tracker_unittest.cc
@@ -124,11 +124,11 @@ struct OcclusionTrackerTestMainThreadTypes {
template <typename T>
static LayerPtrType PassLayerPtr(T* layer) {
LayerPtrType ref(*layer);
- *layer = NULL;
+ *layer = nullptr;
return ref;
}
- static void DestroyLayer(LayerPtrType* layer) { *layer = NULL; }
+ static void DestroyLayer(LayerPtrType* layer) { *layer = nullptr; }
static void RecursiveUpdateNumChildren(LayerType* layerType) {}
};

Powered by Google App Engine
This is Rietveld 408576698