diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index 7af00178c7..71a2443584 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -128,6 +128,9 @@ public: return obj; } + T* operator->() { return fObj; } + operator T*() { return fObj; } + private: T* fObj; };