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

Unified Diff: Source/wtf/PassOwnPtr.h

Issue 23960005: WTF::OwnPtr should behave similarly with the rest of WTF smart pointers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« Source/wtf/OwnPtr.h ('K') | « Source/wtf/OwnPtr.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/PassOwnPtr.h
diff --git a/Source/wtf/PassOwnPtr.h b/Source/wtf/PassOwnPtr.h
index c379f2fd3d6777b6be6f0202f08953e2e1faaf65..6d2f81ae2ee49d620aa8580d1bbf63cd243ac95c 100644
--- a/Source/wtf/PassOwnPtr.h
+++ b/Source/wtf/PassOwnPtr.h
@@ -33,8 +33,6 @@
namespace WTF {
- // Unlike most of our smart pointers, PassOwnPtr can take either the pointer type or the pointed-to type.
-
template<typename T> class OwnPtr;
template<typename T> class PassOwnPtr;
template<typename T> PassOwnPtr<T> adoptPtr(T*);
@@ -42,7 +40,7 @@ namespace WTF {
template<typename T> class PassOwnPtr {
WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(PassOwnPtr);
public:
- typedef typename RemovePointer<T>::Type ValueType;
+ typedef T ValueType;
typedef ValueType* PtrType;
PassOwnPtr() : m_ptr(0) { }
« Source/wtf/OwnPtr.h ('K') | « Source/wtf/OwnPtr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698