From 6882a04fb36642862b11efe514251d32070c3d65 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Thu, 25 Aug 2016 19:20:41 +0300 Subject: Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443) Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f Reviewed-by: Konstantin Tokarev --- Source/JavaScriptCore/heap/Strong.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Source/JavaScriptCore/heap/Strong.h') diff --git a/Source/JavaScriptCore/heap/Strong.h b/Source/JavaScriptCore/heap/Strong.h index e00e92061..5c0f83267 100644 --- a/Source/JavaScriptCore/heap/Strong.h +++ b/Source/JavaScriptCore/heap/Strong.h @@ -84,9 +84,7 @@ public: bool operator!() const { return !slot() || !*slot(); } - // This conversion operator allows implicit conversion to bool but not to other integer types. - typedef JSValue (HandleBase::*UnspecifiedBoolType); - operator UnspecifiedBoolType*() const { return !!*this ? reinterpret_cast(1) : 0; } + explicit operator bool() const { return !!*this; } void swap(Strong& other) { @@ -148,11 +146,11 @@ template inline void swap(Strong& a, Strong& b) namespace WTF { -template struct VectorTraits > : SimpleClassVectorTraits { +template struct VectorTraits> : SimpleClassVectorTraits { static const bool canCompareWithMemcmp = false; }; -template struct HashTraits > : SimpleClassHashTraits > { }; +template struct HashTraits> : SimpleClassHashTraits> { }; } -- cgit v1.2.1