Index: Source/wtf/WeakPtr.h |
diff --git a/Source/wtf/WeakPtr.h b/Source/wtf/WeakPtr.h |
index 3f8ddca3ee0f94664f4071f542c8c9c4b38483f1..900e14cc0c43f8d6a3e7907879916b520c426c6b 100644 |
--- a/Source/wtf/WeakPtr.h |
+++ b/Source/wtf/WeakPtr.h |
@@ -35,12 +35,12 @@ |
namespace WTF { |
template<typename T> |
-class WeakReference : public ThreadSafeRefCounted<WeakReference<T> > { |
+class WeakReference : public ThreadSafeRefCounted<WeakReference<T>> { |
WTF_MAKE_NONCOPYABLE(WeakReference<T>); |
WTF_MAKE_FAST_ALLOCATED; |
public: |
- static PassRefPtr<WeakReference<T> > create(T* ptr) { return adoptRef(new WeakReference(ptr)); } |
- static PassRefPtr<WeakReference<T> > createUnbound() { return adoptRef(new WeakReference()); } |
+ static PassRefPtr<WeakReference<T>> create(T* ptr) { return adoptRef(new WeakReference(ptr)); } |
+ static PassRefPtr<WeakReference<T>> createUnbound() { return adoptRef(new WeakReference()); } |
T* get() const |
{ |
@@ -86,7 +86,7 @@ class WeakPtr { |
public: |
WeakPtr() { } |
WeakPtr(std::nullptr_t) { } |
- WeakPtr(PassRefPtr<WeakReference<T> > ref) : m_ref(ref) { } |
+ WeakPtr(PassRefPtr<WeakReference<T>> ref) : m_ref(ref) { } |
T* get() const { return m_ref ? m_ref->get() : 0; } |
void clear() { m_ref.clear(); } |
@@ -97,11 +97,11 @@ public: |
return get(); |
} |
- typedef RefPtr<WeakReference<T> > (WeakPtr::*UnspecifiedBoolType); |
+ typedef RefPtr<WeakReference<T>> (WeakPtr::*UnspecifiedBoolType); |
operator UnspecifiedBoolType() const { return get() ? &WeakPtr::m_ref : 0; } |
private: |
- RefPtr<WeakReference<T> > m_ref; |
+ RefPtr<WeakReference<T>> m_ref; |
}; |
template<typename T, typename U> inline bool operator==(const WeakPtr<T>& a, const WeakPtr<U>& b) |
@@ -121,7 +121,7 @@ class WeakPtrFactory { |
public: |
explicit WeakPtrFactory(T* ptr) : m_ref(WeakReference<T>::create(ptr)) { } |
- WeakPtrFactory(PassRefPtr<WeakReference<T> > ref, T* ptr) |
+ WeakPtrFactory(PassRefPtr<WeakReference<T>> ref, T* ptr) |
: m_ref(ref) |
{ |
m_ref->bindTo(ptr); |
@@ -141,7 +141,7 @@ public: |
} |
private: |
- RefPtr<WeakReference<T> > m_ref; |
+ RefPtr<WeakReference<T>> m_ref; |
}; |
} // namespace WTF |