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

Unified Diff: Source/wtf/text/AtomicString.cpp

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/TypedArrayBase.h ('k') | Source/wtf/text/AtomicStringCF.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/AtomicString.cpp
diff --git a/Source/wtf/text/AtomicString.cpp b/Source/wtf/text/AtomicString.cpp
index 7f1e7f3d91b2c1bf07be3ec1453d6bf82c814469..667f4e5b2df393b262f6dc950f4d3a4e59d72d11 100644
--- a/Source/wtf/text/AtomicString.cpp
+++ b/Source/wtf/text/AtomicString.cpp
@@ -142,7 +142,7 @@ struct CStringTranslator {
PassRefPtr<StringImpl> AtomicString::add(const LChar* c)
{
if (!c)
- return 0;
+ return nullptr;
if (!*c)
return StringImpl::empty();
@@ -276,7 +276,7 @@ struct HashAndUTF8CharactersTranslator {
PassRefPtr<StringImpl> AtomicString::add(const UChar* s, unsigned length)
{
if (!s)
- return 0;
+ return nullptr;
if (!length)
return StringImpl::empty();
@@ -300,7 +300,7 @@ PassRefPtr<StringImpl> AtomicString::add(const UChar* s, unsigned length, unsign
PassRefPtr<StringImpl> AtomicString::add(const UChar* s)
{
if (!s)
- return 0;
+ return nullptr;
unsigned length = 0;
while (s[length] != UChar(0))
@@ -345,7 +345,7 @@ struct SubstringTranslator {
PassRefPtr<StringImpl> AtomicString::add(StringImpl* baseString, unsigned start, unsigned length)
{
if (!baseString)
- return 0;
+ return nullptr;
if (!length || start >= baseString->length())
return StringImpl::empty();
@@ -404,7 +404,7 @@ struct CharBufferFromLiteralDataTranslator {
PassRefPtr<StringImpl> AtomicString::add(const LChar* s, unsigned length)
{
if (!s)
- return 0;
+ return nullptr;
if (!length)
return StringImpl::empty();
« no previous file with comments | « Source/wtf/TypedArrayBase.h ('k') | Source/wtf/text/AtomicStringCF.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698