Chromium Code Reviews| Index: src/core/SkTRefArray.h |
| =================================================================== |
| --- src/core/SkTRefArray.h (revision 10200) |
| +++ src/core/SkTRefArray.h (working copy) |
| @@ -74,7 +74,7 @@ |
| // call these, since other owners are not informed if we change an element. |
| T* writableBegin() { |
| - SkASSERT(1 == this->getRefCnt()); |
| + SkASSERT(this->unique()); |
| return (T*)(this + 1); |
| } |
| T* writableEnd() { |