Chromium Code Reviews| Index: Source/wtf/RawPtr.h |
| diff --git a/Source/wtf/RawPtr.h b/Source/wtf/RawPtr.h |
| index 146aaf3d5c639a2e402a4cad2ba0d6ada072cf80..953c363b85d23fb6c44d4a5434d73c6673cdb4e5 100644 |
| --- a/Source/wtf/RawPtr.h |
| +++ b/Source/wtf/RawPtr.h |
| @@ -51,6 +51,7 @@ public: |
| RawPtr() : m_ptr(0) { } |
| RawPtr(std::nullptr_t) : m_ptr(0) { } |
| RawPtr(T* ptr) : m_ptr(ptr) { } |
| + RawPtr(T& reference) : m_ptr(&reference) { } |
|
Mikhail
2014/03/05 06:33:43
Shouldn't it be explicit? (to prevent from acciden
|
| RawPtr(const RawPtr& other) |
| : m_ptr(other.get()) |
| { |