Index: Source/core/xml/XPathEvaluator.cpp |
diff --git a/Source/core/xml/XPathEvaluator.cpp b/Source/core/xml/XPathEvaluator.cpp |
index 896c38e1efdabe2339bb93f134928d46148fd8f2..dd666b6e44a73b2a7179f9ff2a93419e7cfedff9 100644 |
--- a/Source/core/xml/XPathEvaluator.cpp |
+++ b/Source/core/xml/XPathEvaluator.cpp |
@@ -56,17 +56,17 @@ PassRefPtrWillBeRawPtr<XPathResult> XPathEvaluator::evaluate(const String& expre |
{ |
if (!contextNode) { |
exceptionState.throwDOMException(NotSupportedError, "The context node provided is null."); |
- return 0; |
+ return nullptr; |
} |
if (!isValidContextNode(contextNode)) { |
exceptionState.throwDOMException(NotSupportedError, "The node provided is '" + contextNode->nodeName() + "', which is not a valid context node type."); |
- return 0; |
+ return nullptr; |
} |
RefPtrWillBeRawPtr<XPathExpression> expr = createExpression(expression, resolver, exceptionState); |
if (exceptionState.hadException()) |
- return 0; |
+ return nullptr; |
return expr->evaluate(contextNode, type, result, exceptionState); |
} |