Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1875)

Unified Diff: Source/wtf/TypedArrayBase.h

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/RefPtr.h ('k') | Source/wtf/text/AtomicString.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/TypedArrayBase.h
diff --git a/Source/wtf/TypedArrayBase.h b/Source/wtf/TypedArrayBase.h
index 491a3381f9241225dc34081509fd90f2291f934b..6acfc15382eceefe79cb6151d364ea78e453a081 100644
--- a/Source/wtf/TypedArrayBase.h
+++ b/Source/wtf/TypedArrayBase.h
@@ -93,7 +93,7 @@ protected:
{
RefPtr<ArrayBuffer> buffer = ArrayBuffer::create(length, sizeof(T));
if (!buffer.get())
- return 0;
+ return nullptr;
return create<Subclass>(buffer, 0, length);
}
@@ -114,7 +114,7 @@ protected:
{
RefPtr<ArrayBuffer> buf(buffer);
if (!verifySubRange<T>(buf, byteOffset, length))
- return 0;
+ return nullptr;
return adoptRef(new Subclass(buf, byteOffset, length));
}
@@ -124,7 +124,7 @@ protected:
{
RefPtr<ArrayBuffer> buffer = ArrayBuffer::createUninitialized(length, sizeof(T));
if (!buffer.get())
- return 0;
+ return nullptr;
return create<Subclass>(buffer, 0, length);
}
« no previous file with comments | « Source/wtf/RefPtr.h ('k') | Source/wtf/text/AtomicString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698