diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2015-10-18 03:48:52 +0200 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2015-10-18 03:48:52 +0200 |
commit | ac91c29637218676d39aa20996ef6af7d2533aa7 (patch) | |
tree | 8e28c81f74f4994e1bc9943dae2635e3e9647aed | |
parent | a6c45fb491b26a33184157d6c3a8652a8c61bd5a (diff) | |
download | external_skia-ac91c29637218676d39aa20996ef6af7d2533aa7.zip external_skia-ac91c29637218676d39aa20996ef6af7d2533aa7.tar.gz external_skia-ac91c29637218676d39aa20996ef6af7d2533aa7.tar.bz2 |
Change-Id: Ia9eefa6b7fa8bea028f972407913a3a61b1caafe
-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; } |