Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: include/core/SkTemplates.h

Issue 1114043005: Make SkAutoTDelete's operator T*() const, like all the others. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTemplates.h
diff --git a/include/core/SkTemplates.h b/include/core/SkTemplates.h
index 1d22a642dae3ba959d4f7a9a9bee8fb4ff7072e7..0488a29651ad044df90d3822b166e0f7c3f5f954 100644
--- a/include/core/SkTemplates.h
+++ b/include/core/SkTemplates.h
@@ -132,7 +132,7 @@ public:
~SkAutoTDelete() { SkDELETE(fObj); }
T* get() const { return fObj; }
- operator T*() { return fObj; }
+ operator T*() const { return fObj; }
T& operator*() const { SkASSERT(fObj); return *fObj; }
T* operator->() const { SkASSERT(fObj); return fObj; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698