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

Unified Diff: Source/core/xml/XPathFunctions.cpp

Issue 1161323007: Use nullptr instead of 0 in xml and xmlhttprequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comment & modified in other files which assigned "0" to ptr. Created 5 years, 6 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/xml/DocumentXSLT.cpp ('k') | Source/core/xml/XPathNodeSet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathFunctions.cpp
diff --git a/Source/core/xml/XPathFunctions.cpp b/Source/core/xml/XPathFunctions.cpp
index aeea79c90ee9c6910df67019c06632aeb23a91af..5a3ddf8d0cc2db755cf42e0563f4339f7a6d1670 100644
--- a/Source/core/xml/XPathFunctions.cpp
+++ b/Source/core/xml/XPathFunctions.cpp
@@ -596,7 +596,7 @@ Value FunLang::evaluate(EvaluationContext& context) const
{
String lang = arg(0)->evaluate(context).toString();
- const Attribute* languageAttribute = 0;
+ const Attribute* languageAttribute = nullptr;
Node* node = context.node.get();
while (node) {
if (node->isElementNode()) {
@@ -736,10 +736,10 @@ Function* createFunction(const String& name, HeapVector<Member<Expression>>& arg
createFunctionMap();
HashMap<String, FunctionRec>::iterator functionMapIter = functionMap->find(name);
- FunctionRec* functionRec = 0;
+ FunctionRec* functionRec = nullptr;
if (functionMapIter == functionMap->end() || !(functionRec = &functionMapIter->value)->args.contains(args.size()))
- return 0;
+ return nullptr;
Function* function = functionRec->factoryFn();
function->setArguments(args);
« no previous file with comments | « Source/core/xml/DocumentXSLT.cpp ('k') | Source/core/xml/XPathNodeSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698