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

Unified Diff: Source/platform/JSONValues.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/platform/DragImage.cpp ('k') | Source/platform/Length.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/JSONValues.cpp
diff --git a/Source/platform/JSONValues.cpp b/Source/platform/JSONValues.cpp
index e5bb28ddb2b43341719afcd880a4cc9c46be5d89..505dd8e53c8b3d279b8becb55b00c9866bb27b46 100644
--- a/Source/platform/JSONValues.cpp
+++ b/Source/platform/JSONValues.cpp
@@ -135,12 +135,12 @@ bool JSONValue::asArray(RefPtr<JSONArray>*)
PassRefPtr<JSONObject> JSONValue::asObject()
{
- return 0;
+ return nullptr;
}
PassRefPtr<JSONArray> JSONValue::asArray()
{
- return 0;
+ return nullptr;
}
String JSONValue::toJSONString() const
@@ -290,7 +290,7 @@ PassRefPtr<JSONObject> JSONObjectBase::getObject(const String& name) const
{
RefPtr<JSONValue> value = get(name);
if (!value)
- return 0;
+ return nullptr;
return value->asObject();
}
@@ -298,7 +298,7 @@ PassRefPtr<JSONArray> JSONObjectBase::getArray(const String& name) const
{
RefPtr<JSONValue> value = get(name);
if (!value)
- return 0;
+ return nullptr;
return value->asArray();
}
@@ -306,7 +306,7 @@ PassRefPtr<JSONValue> JSONObjectBase::get(const String& name) const
{
Dictionary::const_iterator it = m_data.find(name);
if (it == m_data.end())
- return 0;
+ return nullptr;
return it->value;
}
« no previous file with comments | « Source/platform/DragImage.cpp ('k') | Source/platform/Length.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698