Index: Source/core/html/canvas/DataView.cpp |
diff --git a/Source/core/html/canvas/DataView.cpp b/Source/core/html/canvas/DataView.cpp |
index 7399476523b742b102fd534505282d836930f644..41b6cb3332de4afe67903d1a72e912521c557f00 100644 |
--- a/Source/core/html/canvas/DataView.cpp |
+++ b/Source/core/html/canvas/DataView.cpp |
@@ -47,19 +47,19 @@ PassRefPtr<DataView> DataView::create(unsigned length) |
{ |
RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(length, sizeof(uint8_t)); |
if (!buffer.get()) |
- return 0; |
+ return nullptr; |
return create(buffer, 0, length); |
} |
PassRefPtr<DataView> DataView::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned byteLength) |
{ |
if (byteOffset > buffer->byteLength()) |
- return 0; |
+ return nullptr; |
CheckedInt<uint32_t> checkedOffset(byteOffset); |
CheckedInt<uint32_t> checkedLength(byteLength); |
CheckedInt<uint32_t> checkedMax = checkedOffset + checkedLength; |
if (!checkedMax.isValid() || checkedMax.value() > buffer->byteLength()) |
- return 0; |
+ return nullptr; |
return adoptRef(new DataView(buffer, byteOffset, byteLength)); |
} |