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

Unified Diff: include/private/SkTemplates.h

Issue 1817153002: Remove transitional explicit operator bool. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « include/core/SkRefCnt.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/private/SkTemplates.h
diff --git a/include/private/SkTemplates.h b/include/private/SkTemplates.h
index e8fbfd5a893ae388ad5bb59a178ee110882025a8..272b5856ad117493be98ee42bcc3b94a5fba4b01 100644
--- a/include/private/SkTemplates.h
+++ b/include/private/SkTemplates.h
@@ -101,9 +101,6 @@ public:
// Need to update graphics/BitmapRegionDecoder.cpp.
T* detach() { return this->release(); }
#endif
-
- // See SkAutoTUnref for why we do this.
- explicit operator bool() const { return this->get() != nullptr; }
};
template <typename T> class SkAutoTDeleteArray : public std::unique_ptr<T[]> {
« no previous file with comments | « include/core/SkRefCnt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698