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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/Nullable.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 | « no previous file | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/Nullable.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/Nullable.h b/third_party/WebKit/Source/bindings/core/v8/Nullable.h
index 8598486bc264ce6e7ded39d8147e431fbebef3b3..31b0f612b59794229104dbd2f5f2aa2c7e75ddd9 100644
--- a/third_party/WebKit/Source/bindings/core/v8/Nullable.h
+++ b/third_party/WebKit/Source/bindings/core/v8/Nullable.h
@@ -65,9 +65,7 @@ public:
T& get() { ASSERT(!m_isNull); return m_value; }
bool isNull() const { return m_isNull; }
- // See comment in RefPtr.h about what UnspecifiedBoolType is.
- typedef const T* UnspecifiedBoolType;
- operator UnspecifiedBoolType() const { return m_isNull ? 0 : &m_value; }
+ explicit operator bool() const { return !m_isNull; }
bool operator==(const Nullable& other) const
{
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698