Remove transitional explicit operator bool.
These should no longer be necessary. Android's STL should now be sane. TBR=reed This just removes code. Review URL: https://codereview.chromium.org/1817153002
This commit is contained in:
parent
3c481001b1
commit
04cdc4b618
@ -200,10 +200,6 @@ public:
|
||||
// Need to update graphics/Shader.cpp.
|
||||
T* detach() { return this->release(); }
|
||||
#endif
|
||||
|
||||
// Android's std::unique_ptr's operator bool() is sometimes not explicit...
|
||||
// so override it with our own explcitly explicit version.
|
||||
explicit operator bool() const { return this->get() != nullptr; }
|
||||
};
|
||||
// Can't use the #define trick below to guard a bare SkAutoTUnref(...) because it's templated. :(
|
||||
|
||||
|
@ -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[]> {
|
||||
|
Loading…
Reference in New Issue
Block a user