Index: include/core/SkTemplates.h |
diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h |
index 5d3fa2d10cd2371c7dcebf2b45552e8922412884..aa9bfd5e13e8f75a8e48e24e0b49d431f66339fd 100644 |
--- a/include/core/SkTemplates.h |
+++ b/include/core/SkTemplates.h |
@@ -115,6 +115,7 @@ public: |
~SkAutoTDelete() { SkDELETE(fObj); } |
T* get() const { return fObj; } |
+ operator T*() { return fObj; } |
T& operator*() const { SkASSERT(fObj); return *fObj; } |
T* operator->() const { SkASSERT(fObj); return fObj; } |