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

Unified Diff: Source/wtf/PassOwnPtr.h

Issue 17959002: Disallow C++11 compilers from constructing OwnPtrs from 0 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a macro to disallow construction from zero Created 7 years, 5 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/PassOwnArrayPtr.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 81d674e13005900c4816a5357a5b18b977ea24aa..4afb0e48f2d00a8fe1432129e0f367cc04e9008e 100644
--- a/Source/wtf/PassOwnPtr.h
+++ b/Source/wtf/PassOwnPtr.h
@@ -40,6 +40,7 @@ namespace WTF {
template<typename T> PassOwnPtr<T> adoptPtr(T*);
template<typename T> class PassOwnPtr {
+ WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(PassOwnPtr);
public:
typedef typename RemovePointer<T>::Type ValueType;
typedef ValueType* PtrType;
« no previous file with comments | « Source/wtf/PassOwnArrayPtr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698