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

Unified Diff: third_party/WebKit/Source/wtf/WeakPtr.h

Issue 2145643002: Purge UnspecifiedBoolType from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « third_party/WebKit/Source/wtf/RetainPtr.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/WeakPtr.h
diff --git a/third_party/WebKit/Source/wtf/WeakPtr.h b/third_party/WebKit/Source/wtf/WeakPtr.h
index c377957c80c9397200eaf7c40a91e8131e296578..8bec53fa7e75c9be75081ecd20dad4aaa4735cc2 100644
--- a/third_party/WebKit/Source/wtf/WeakPtr.h
+++ b/third_party/WebKit/Source/wtf/WeakPtr.h
@@ -107,8 +107,7 @@ public:
return get();
}
- typedef RefPtr<WeakReference<T>> (WeakPtr::*UnspecifiedBoolType);
- operator UnspecifiedBoolType() const { return get() ? &WeakPtr::m_ref : 0; }
+ explicit operator bool() const { return get(); }
private:
RefPtr<WeakReference<T>> m_ref;
« no previous file with comments | « third_party/WebKit/Source/wtf/RetainPtr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698