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

Unified Diff: Source/wtf/text/WTFString.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/text/StringConcatenate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/WTFString.cpp
diff --git a/Source/wtf/text/WTFString.cpp b/Source/wtf/text/WTFString.cpp
index f79e7ee60d4919e6500e1260f1e492e45f0caacd..a5ebda3c3ddbd59e0846e63c54258946125aabbf 100644
--- a/Source/wtf/text/WTFString.cpp
+++ b/Source/wtf/text/WTFString.cpp
@@ -45,7 +45,7 @@ using namespace std;
// Construct a string with UTF-16 data.
String::String(const UChar* characters, unsigned length)
- : m_impl(characters ? StringImpl::create(characters, length) : 0)
+ : m_impl(characters ? StringImpl::create(characters, length) : nullptr)
{
}
@@ -59,23 +59,23 @@ String::String(const UChar* str)
// Construct a string with latin1 data.
String::String(const LChar* characters, unsigned length)
- : m_impl(characters ? StringImpl::create(characters, length) : 0)
+ : m_impl(characters ? StringImpl::create(characters, length) : nullptr)
{
}
String::String(const char* characters, unsigned length)
- : m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters), length) : 0)
+ : m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters), length) : nullptr)
{
}
// Construct a string with latin1 data, from a null-terminated source.
String::String(const LChar* characters)
- : m_impl(characters ? StringImpl::create(characters) : 0)
+ : m_impl(characters ? StringImpl::create(characters) : nullptr)
{
}
String::String(const char* characters)
- : m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters)) : 0)
+ : m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters)) : nullptr)
{
}
« no previous file with comments | « Source/wtf/text/StringConcatenate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698