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

Unified Diff: Source/wtf/WeakPtr.h

Issue 835953003: Fix template angle bracket syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 | « Source/wtf/VectorTraits.h ('k') | Source/wtf/text/AtomicString.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/wtf/VectorTraits.h ('k') | Source/wtf/text/AtomicString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698