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

Unified Diff: Source/core/plugins/DOMMimeTypeArray.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/core/plugins/DOMMimeType.cpp ('k') | Source/core/plugins/DOMPlugin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/plugins/DOMMimeTypeArray.cpp
diff --git a/Source/core/plugins/DOMMimeTypeArray.cpp b/Source/core/plugins/DOMMimeTypeArray.cpp
index e2f948bb017189d918ed6503b81e80ae9a4e1034..d2d14a88491fdcbd40135e52fef4fb8749c650d3 100644
--- a/Source/core/plugins/DOMMimeTypeArray.cpp
+++ b/Source/core/plugins/DOMMimeTypeArray.cpp
@@ -51,10 +51,10 @@ PassRefPtrWillBeRawPtr<DOMMimeType> DOMMimeTypeArray::item(unsigned index)
{
PluginData* data = getPluginData();
if (!data)
- return 0;
+ return nullptr;
const Vector<MimeClassInfo>& mimes = data->mimes();
if (index >= mimes.size())
- return 0;
+ return nullptr;
return DOMMimeType::create(data, m_frame, index).get();
}
@@ -75,13 +75,13 @@ PassRefPtrWillBeRawPtr<DOMMimeType> DOMMimeTypeArray::namedItem(const AtomicStri
{
PluginData *data = getPluginData();
if (!data)
- return 0;
+ return nullptr;
const Vector<MimeClassInfo>& mimes = data->mimes();
for (unsigned i = 0; i < mimes.size(); ++i) {
if (mimes[i].type == propertyName)
return DOMMimeType::create(data, m_frame, i).get();
}
- return 0;
+ return nullptr;
}
PluginData* DOMMimeTypeArray::getPluginData() const
« no previous file with comments | « Source/core/plugins/DOMMimeType.cpp ('k') | Source/core/plugins/DOMPlugin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698