Index: Source/wtf/PassRefPtr.h |
diff --git a/Source/wtf/PassRefPtr.h b/Source/wtf/PassRefPtr.h |
index 511d8ba2d2078db14caec976b8179cbe22998f7c..d04ad81365de105bf9dc9345123c75423209348c 100644 |
--- a/Source/wtf/PassRefPtr.h |
+++ b/Source/wtf/PassRefPtr.h |
@@ -57,7 +57,7 @@ namespace WTF { |
ALWAYS_INLINE ~PassRefPtr() { derefIfNotNull(m_ptr); } |
template<typename U> PassRefPtr(const RefPtr<U>&); |
- |
+ |
T* get() const { return m_ptr; } |
T* leakRef() const WARN_UNUSED_RETURN; |
@@ -81,7 +81,7 @@ namespace WTF { |
mutable T* m_ptr; |
}; |
- |
+ |
template<typename T> template<typename U> inline PassRefPtr<T>::PassRefPtr(const RefPtr<U>& o) |
: m_ptr(o.get()) |
{ |
@@ -96,70 +96,70 @@ namespace WTF { |
return ptr; |
} |
- template<typename T, typename U> inline bool operator==(const PassRefPtr<T>& a, const PassRefPtr<U>& b) |
- { |
- return a.get() == b.get(); |
+ template<typename T, typename U> inline bool operator==(const PassRefPtr<T>& a, const PassRefPtr<U>& b) |
+ { |
+ return a.get() == b.get(); |
} |
- template<typename T, typename U> inline bool operator==(const PassRefPtr<T>& a, const RefPtr<U>& b) |
- { |
- return a.get() == b.get(); |
+ template<typename T, typename U> inline bool operator==(const PassRefPtr<T>& a, const RefPtr<U>& b) |
+ { |
+ return a.get() == b.get(); |
} |
- template<typename T, typename U> inline bool operator==(const RefPtr<T>& a, const PassRefPtr<U>& b) |
- { |
- return a.get() == b.get(); |
+ template<typename T, typename U> inline bool operator==(const RefPtr<T>& a, const PassRefPtr<U>& b) |
+ { |
+ return a.get() == b.get(); |
} |
- template<typename T, typename U> inline bool operator==(const PassRefPtr<T>& a, U* b) |
- { |
- return a.get() == b; |
+ template<typename T, typename U> inline bool operator==(const PassRefPtr<T>& a, U* b) |
+ { |
+ return a.get() == b; |
} |
- |
- template<typename T, typename U> inline bool operator==(T* a, const PassRefPtr<U>& b) |
+ |
+ template<typename T, typename U> inline bool operator==(T* a, const PassRefPtr<U>& b) |
{ |
- return a == b.get(); |
+ return a == b.get(); |
} |
- |
- template<typename T, typename U> inline bool operator!=(const PassRefPtr<T>& a, const PassRefPtr<U>& b) |
- { |
- return a.get() != b.get(); |
+ |
+ template<typename T, typename U> inline bool operator!=(const PassRefPtr<T>& a, const PassRefPtr<U>& b) |
+ { |
+ return a.get() != b.get(); |
} |
- template<typename T, typename U> inline bool operator!=(const PassRefPtr<T>& a, const RefPtr<U>& b) |
- { |
- return a.get() != b.get(); |
+ template<typename T, typename U> inline bool operator!=(const PassRefPtr<T>& a, const RefPtr<U>& b) |
+ { |
+ return a.get() != b.get(); |
} |
- template<typename T, typename U> inline bool operator!=(const RefPtr<T>& a, const PassRefPtr<U>& b) |
- { |
- return a.get() != b.get(); |
+ template<typename T, typename U> inline bool operator!=(const RefPtr<T>& a, const PassRefPtr<U>& b) |
+ { |
+ return a.get() != b.get(); |
} |
template<typename T, typename U> inline bool operator!=(const PassRefPtr<T>& a, U* b) |
{ |
- return a.get() != b; |
+ return a.get() != b; |
} |
- template<typename T, typename U> inline bool operator!=(T* a, const PassRefPtr<U>& b) |
- { |
- return a != b.get(); |
+ template<typename T, typename U> inline bool operator!=(T* a, const PassRefPtr<U>& b) |
+ { |
+ return a != b.get(); |
} |
- |
+ |
template<typename T> inline PassRefPtr<T> adoptRef(T* p) |
{ |
adopted(p); |
return PassRefPtr<T>(p, true); |
} |
- template<typename T, typename U> inline PassRefPtr<T> static_pointer_cast(const PassRefPtr<U>& p) |
- { |
- return adoptRef(static_cast<T*>(p.leakRef())); |
+ template<typename T, typename U> inline PassRefPtr<T> static_pointer_cast(const PassRefPtr<U>& p) |
+ { |
+ return adoptRef(static_cast<T*>(p.leakRef())); |
} |
- template<typename T, typename U> inline PassRefPtr<T> const_pointer_cast(const PassRefPtr<U>& p) |
- { |
- return adoptRef(const_cast<T*>(p.leakRef())); |
+ template<typename T, typename U> inline PassRefPtr<T> const_pointer_cast(const PassRefPtr<U>& p) |
+ { |
+ return adoptRef(const_cast<T*>(p.leakRef())); |
} |
template<typename T> inline T* getPtr(const PassRefPtr<T>& p) |