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

Unified Diff: Source/wtf/WeakPtr.h

Issue 304323010: Oilpan: have DocumentInit use transition types throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add WeakPtrWillBeMember transition type Created 6 years, 7 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
« Source/core/dom/DocumentInit.h ('K') | « Source/platform/heap/Handle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/WeakPtr.h
diff --git a/Source/wtf/WeakPtr.h b/Source/wtf/WeakPtr.h
index d8785ce926994a3eb3f294b92373e356e6936a18..f81e122cebcf4e88f935756a62bde026819a7768 100644
--- a/Source/wtf/WeakPtr.h
+++ b/Source/wtf/WeakPtr.h
@@ -85,6 +85,7 @@ class WeakPtr {
WTF_MAKE_FAST_ALLOCATED;
public:
WeakPtr() { }
+ WeakPtr(std::nullptr_t) { }
WeakPtr(PassRefPtr<WeakReference<T> > ref) : m_ref(ref) { }
T* get() const { return m_ref ? m_ref->get() : 0; }
« Source/core/dom/DocumentInit.h ('K') | « Source/platform/heap/Handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698