Index: third_party/WebKit/Source/platform/heap/Handle.h |
diff --git a/third_party/WebKit/Source/platform/heap/Handle.h b/third_party/WebKit/Source/platform/heap/Handle.h |
index 64e43fd71243011277fb2052e26dfe146148b0dc..358cf68921795c0a9aeb6040f23c4396207fecda 100644 |
--- a/third_party/WebKit/Source/platform/heap/Handle.h |
+++ b/third_party/WebKit/Source/platform/heap/Handle.h |
@@ -1047,14 +1047,14 @@ class PLATFORM_EXPORT DummyBase<void> { }; |
template<typename T> T* adoptRefWillBeNoop(T* ptr) |
{ |
- static const bool notRefCounted = !WTF::IsSubclassOfTemplate<typename WTF::RemoveConst<T>::Type, RefCounted>::value; |
+ static const bool notRefCounted = !WTF::IsSubclassOfTemplate<typename std::remove_const<T>::type, RefCounted>::value; |
static_assert(notRefCounted, "you must adopt"); |
return ptr; |
} |
template<typename T> T* adoptPtrWillBeNoop(T* ptr) |
{ |
- static const bool notRefCounted = !WTF::IsSubclassOfTemplate<typename WTF::RemoveConst<T>::Type, RefCounted>::value; |
+ static const bool notRefCounted = !WTF::IsSubclassOfTemplate<typename std::remove_const<T>::type, RefCounted>::value; |
static_assert(notRefCounted, "you must adopt"); |
return ptr; |
} |