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

Unified Diff: Source/core/svg/properties/NewSVGListPropertyTearOffHelper.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/NewSVGListPropertyTearOffHelper.h
diff --git a/Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h b/Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h
index 05dc97a3fea4420635d42572fe27ddb4486bf0d5..de7d151104a266b4c50b5ecd7a80ac7650dcdccb 100644
--- a/Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h
+++ b/Source/core/svg/properties/NewSVGListPropertyTearOffHelper.h
@@ -102,12 +102,12 @@ public:
if (toDerived()->isImmutable()) {
exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only.");
- return 0;
+ return nullptr;
}
if (!item) {
exceptionState.throwTypeError("Lists must be initialized with a valid item.");
- return 0;
+ return nullptr;
}
RefPtr<ItemPropertyType> value = toDerived()->target()->initialize(getValueForInsertionFromTearOff(item));
@@ -128,12 +128,12 @@ public:
if (toDerived()->isImmutable()) {
exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only.");
- return 0;
+ return nullptr;
}
if (!item) {
exceptionState.throwTypeError("An invalid item cannot be inserted to a list.");
- return 0;
+ return nullptr;
}
RefPtr<ItemPropertyType> value = toDerived()->target()->insertItemBefore(getValueForInsertionFromTearOff(item), index);
@@ -148,12 +148,12 @@ public:
if (toDerived()->isImmutable()) {
exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only.");
- return 0;
+ return nullptr;
}
if (!item) {
exceptionState.throwTypeError("An invalid item cannot be replaced with an existing list item.");
- return 0;
+ return nullptr;
}
RefPtr<ItemPropertyType> value = toDerived()->target()->replaceItem(getValueForInsertionFromTearOff(item), index, exceptionState);
@@ -176,12 +176,12 @@ public:
if (toDerived()->isImmutable()) {
exceptionState.throwDOMException(NoModificationAllowedError, "The object is read-only.");
- return 0;
+ return nullptr;
}
if (!item) {
exceptionState.throwTypeError("An invalid item cannot be appended to a list.");
- return 0;
+ return nullptr;
}
RefPtr<ItemPropertyType> value = toDerived()->target()->appendItem(getValueForInsertionFromTearOff(item));
@@ -204,7 +204,7 @@ protected:
PassRefPtr<ItemTearOffType> createItemTearOff(PassRefPtr<ItemPropertyType> value)
{
if (!value)
- return 0;
+ return nullptr;
return ItemTraits::createTearOff(value, toDerived()->contextElement(), toDerived()->propertyIsAnimVal(), toDerived()->attributeName());
}
« no previous file with comments | « Source/core/svg/properties/NewSVGListPropertyHelper.h ('k') | Source/core/svg/properties/SVGAnimatedListPropertyTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698