Chromium Code Reviews| Index: include/core/SkStream.h |
| diff --git a/include/core/SkStream.h b/include/core/SkStream.h |
| index a6a62c42ba1b7dd9c08264eed0417a40fa0d8264..4bfaeda58793d7b25aa58319a52c8cc92503a14e 100644 |
| --- a/include/core/SkStream.h |
| +++ b/include/core/SkStream.h |
| @@ -200,7 +200,10 @@ public: |
| bool write16(U16CPU); |
| bool write32(uint32_t); |
| - bool writeText(const char text[]); |
| + bool writeText(const char text[]) { |
| + SkASSERT(text); |
| + return this->write(text, strlen(text)); |
|
bungeman-skia
2016/04/01 15:19:18
The win here appears to be mostly that the compile
|
| + } |
| bool writeDecAsText(int32_t); |
| bool writeBigDecAsText(int64_t, int minDigits = 0); |
| bool writeHexAsText(uint32_t, int minDigits = 0); |