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

Unified Diff: Source/core/plugins/DOMPluginArray.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/DOMPlugin.cpp ('k') | Source/core/rendering/AbstractInlineTextBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/plugins/DOMPluginArray.cpp
diff --git a/Source/core/plugins/DOMPluginArray.cpp b/Source/core/plugins/DOMPluginArray.cpp
index d8659851f6cd79f5d8d61b7c204ac4b2e7cbfa67..7fb2686aa54f9ef5972a5295341dc31ec614f8db 100644
--- a/Source/core/plugins/DOMPluginArray.cpp
+++ b/Source/core/plugins/DOMPluginArray.cpp
@@ -51,10 +51,10 @@ PassRefPtrWillBeRawPtr<DOMPlugin> DOMPluginArray::item(unsigned index)
{
PluginData* data = pluginData();
if (!data)
- return 0;
+ return nullptr;
const Vector<PluginInfo>& plugins = data->plugins();
if (index >= plugins.size())
- return 0;
+ return nullptr;
return DOMPlugin::create(data, m_frame, index).get();
}
@@ -75,13 +75,13 @@ PassRefPtrWillBeRawPtr<DOMPlugin> DOMPluginArray::namedItem(const AtomicString&
{
PluginData* data = pluginData();
if (!data)
- return 0;
+ return nullptr;
const Vector<PluginInfo>& plugins = data->plugins();
for (unsigned i = 0; i < plugins.size(); ++i) {
if (plugins[i].name == propertyName)
return DOMPlugin::create(data, m_frame, i).get();
}
- return 0;
+ return nullptr;
}
void DOMPluginArray::refresh(bool reload)
« no previous file with comments | « Source/core/plugins/DOMPlugin.cpp ('k') | Source/core/rendering/AbstractInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698