Chromium Code Reviews| Index: include/core/SkRefCnt.h |
| diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h |
| index c45ed6bbf06f0d261f6efde6b696da538166b0dd..d3d05012dc1e286b76c03d75be145c7e65b38bf0 100644 |
| --- a/include/core/SkRefCnt.h |
| +++ b/include/core/SkRefCnt.h |
| @@ -330,7 +330,7 @@ public: |
| return *this; |
| } |
| - T& operator*() const { |
| + skstd::add_lvalue_reference_t<T> operator*() const { |
|
reed1
2016/05/01 18:53:52
Is this change a necessary part of the "typeface"
bungeman-skia
2016/05/02 20:24:54
No, I'll stick this in another CL, it got mixed up
|
| SkASSERT(this->get() != nullptr); |
| return *this->get(); |
| } |