| Index: Source/wtf/GetPtr.h
|
| diff --git a/Source/wtf/GetPtr.h b/Source/wtf/GetPtr.h
|
| index a0f7c62f8b891f34a8cd3542a273a6b6e0f13e83..dc431c76ac38862809c4cbbf9059ba0649d5679d 100644
|
| --- a/Source/wtf/GetPtr.h
|
| +++ b/Source/wtf/GetPtr.h
|
| @@ -21,6 +21,8 @@
|
| #ifndef WTF_GetPtr_h
|
| #define WTF_GetPtr_h
|
|
|
| +#include "wtf/RawPtr.h"
|
| +
|
| namespace WTF {
|
|
|
| template <typename T> inline T* getPtr(T* p)
|
| @@ -33,6 +35,11 @@ namespace WTF {
|
| return &p;
|
| }
|
|
|
| + template <typename T> inline T* getPtr(RawPtr<T> p)
|
| + {
|
| + return p.get();
|
| + }
|
| +
|
| } // namespace WTF
|
|
|
| #endif // WTF_GetPtr_h
|
|
|