diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkTemplates.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h index 03f0892..50aa1e1 100644 --- a/include/core/SkTemplates.h +++ b/include/core/SkTemplates.h @@ -61,6 +61,7 @@ public: ~SkAutoTDelete() { if (fDeleteWhenDone) delete fObj; } T* get() const { return fObj; } + T* operator->() const { SkASSERT(fObj); return fObj; } void free() { delete fObj; fObj = NULL; } T* detach() { T* obj = fObj; fObj = NULL; return obj; } |