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

Unified Diff: Source/wtf/text/StringConcatenate.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/text/StringBuilder.h ('k') | Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/StringConcatenate.h
diff --git a/Source/wtf/text/StringConcatenate.h b/Source/wtf/text/StringConcatenate.h
index f70efb536dd2b5efa9b024c9344dbaac324baf54..9c7dd8839a1d861a8be8eaacc2634be66c71b511 100644
--- a/Source/wtf/text/StringConcatenate.h
+++ b/Source/wtf/text/StringConcatenate.h
@@ -405,13 +405,13 @@ PassRefPtr<StringImpl> makeString(StringType1 string1, StringType2 string2)
unsigned length = adapter1.length();
sumWithOverflow(length, adapter2.length(), overflow);
if (overflow)
- return 0;
+ return nullptr;
if (adapter1.is8Bit() && adapter2.is8Bit()) {
LChar* buffer;
RefPtr<StringImpl> resultImpl = StringImpl::createUninitialized(length, buffer);
if (!resultImpl)
- return 0;
+ return nullptr;
LChar* result = buffer;
adapter1.writeTo(result);
@@ -424,7 +424,7 @@ PassRefPtr<StringImpl> makeString(StringType1 string1, StringType2 string2)
UChar* buffer;
RefPtr<StringImpl> resultImpl = StringImpl::createUninitialized(length, buffer);
if (!resultImpl)
- return 0;
+ return nullptr;
UChar* result = buffer;
adapter1.writeTo(result);
« no previous file with comments | « Source/wtf/text/StringBuilder.h ('k') | Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698