aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkBuffer.h')
-rw-r--r--src/core/SkBuffer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/SkBuffer.h b/src/core/SkBuffer.h
index c9c1a8e686..dd7f95aa3c 100644
--- a/src/core/SkBuffer.h
+++ b/src/core/SkBuffer.h
@@ -21,12 +21,12 @@
*/
class SkRBuffer : SkNoncopyable {
public:
- SkRBuffer() : fData(0), fPos(0), fStop(0) {}
+ SkRBuffer() : fData(nullptr), fPos(nullptr), fStop(nullptr) {}
/** Initialize RBuffer with a data point and length.
*/
SkRBuffer(const void* data, size_t size) {
- SkASSERT(data != 0 || size == 0);
+ SkASSERT(data != nullptr || size == 0);
fData = (const char*)data;
fPos = (const char*)data;
fStop = (const char*)data + size;
@@ -77,18 +77,18 @@ private:
*/
class SkWBuffer : SkNoncopyable {
public:
- SkWBuffer() : fData(0), fPos(0), fStop(0) {}
+ SkWBuffer() : fData(nullptr), fPos(nullptr), fStop(nullptr) {}
SkWBuffer(void* data) { reset(data); }
SkWBuffer(void* data, size_t size) { reset(data, size); }
void reset(void* data) {
fData = (char*)data;
fPos = (char*)data;
- fStop = 0; // no bounds checking
+ fStop = nullptr; // no bounds checking
}
void reset(void* data, size_t size) {
- SkASSERT(data != 0 || size == 0);
+ SkASSERT(data != nullptr || size == 0);
fData = (char*)data;
fPos = (char*)data;
fStop = (char*)data + size;