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

Unified Diff: Source/core/svg/properties/NewSVGListPropertyHelper.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
Index: Source/core/svg/properties/NewSVGListPropertyHelper.h
diff --git a/Source/core/svg/properties/NewSVGListPropertyHelper.h b/Source/core/svg/properties/NewSVGListPropertyHelper.h
index a1f15ed952dd87d7be4d3414148b701f27c75335..9365de1fe78e01f629597df767f32da45c897c3a 100644
--- a/Source/core/svg/properties/NewSVGListPropertyHelper.h
+++ b/Source/core/svg/properties/NewSVGListPropertyHelper.h
@@ -157,7 +157,7 @@ private:
static PassRefPtr<Derived> toDerived(PassRefPtr<NewSVGPropertyBase> passBase)
{
if (!passBase)
- return 0;
+ return nullptr;
RefPtr<NewSVGPropertyBase> base = passBase;
ASSERT(base->type() == Derived::classType());
@@ -212,7 +212,7 @@ template<typename Derived, typename ItemProperty>
PassRefPtr<ItemProperty> NewSVGListPropertyHelper<Derived, ItemProperty>::getItem(size_t index, ExceptionState& exceptionState)
{
if (!checkIndexBound(index, exceptionState))
- return 0;
+ return nullptr;
ASSERT(index < m_values.size());
ASSERT(m_values.at(index)->ownerList() == this);
@@ -247,7 +247,7 @@ PassRefPtr<ItemProperty> NewSVGListPropertyHelper<Derived, ItemProperty>::remove
{
if (index >= m_values.size()) {
exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexExceedsMaximumBound("index", index, m_values.size()));
- return 0;
+ return nullptr;
}
ASSERT(m_values.at(index)->ownerList() == this);
RefPtr<ItemPropertyType> oldItem = m_values.at(index);
@@ -274,7 +274,7 @@ template<typename Derived, typename ItemProperty>
PassRefPtr<ItemProperty> NewSVGListPropertyHelper<Derived, ItemProperty>::replaceItem(PassRefPtr<ItemProperty> passNewItem, size_t index, ExceptionState& exceptionState)
{
if (!checkIndexBound(index, exceptionState))
- return 0;
+ return nullptr;
RefPtr<ItemPropertyType> newItem = passNewItem;
@@ -288,7 +288,7 @@ PassRefPtr<ItemProperty> NewSVGListPropertyHelper<Derived, ItemProperty>::replac
if (m_values.isEmpty()) {
// 'newItem' already lived in our list, we removed it, and now we're empty, which means there's nothing to replace.
exceptionState.throwDOMException(IndexSizeError, String::format("Failed to replace the provided item at index %zu.", index));
- return 0;
+ return nullptr;
}
// Update the value at the desired position 'index'.
« no previous file with comments | « Source/core/svg/graphics/filters/SVGFilterBuilder.cpp ('k') | Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698