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

Side by Side Diff: Source/core/xml/XPathParser.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 unified diff | Download patch
« no previous file with comments | « Source/core/xml/XPathNodeSet.cpp ('k') | Source/core/xml/XPathResult.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org>
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 24 matching lines...) Expand all
35 #include "core/xml/XPathNSResolver.h" 35 #include "core/xml/XPathNSResolver.h"
36 #include "core/xml/XPathPath.h" 36 #include "core/xml/XPathPath.h"
37 #include "wtf/StdLibExtras.h" 37 #include "wtf/StdLibExtras.h"
38 #include "wtf/text/StringHash.h" 38 #include "wtf/text/StringHash.h"
39 39
40 using namespace blink; 40 using namespace blink;
41 using namespace WTF; 41 using namespace WTF;
42 using namespace Unicode; 42 using namespace Unicode;
43 using namespace XPath; 43 using namespace XPath;
44 44
45 Parser* Parser::currentParser = 0; 45 Parser* Parser::currentParser = nullptr;
46 46
47 enum XMLCat { NameStart, NameCont, NotPartOfName }; 47 enum XMLCat { NameStart, NameCont, NotPartOfName };
48 48
49 typedef HashMap<String, Step::Axis> AxisNamesMap; 49 typedef HashMap<String, Step::Axis> AxisNamesMap;
50 50
51 static XMLCat charCat(UChar aChar) 51 static XMLCat charCat(UChar aChar)
52 { 52 {
53 // might need to add some special cases from the XML spec. 53 // might need to add some special cases from the XML spec.
54 54
55 if (aChar == '_') 55 if (aChar == '_')
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 506
507 void Parser::deleteString(String* s) 507 void Parser::deleteString(String* s)
508 { 508 {
509 if (s == 0) 509 if (s == 0)
510 return; 510 return;
511 511
512 ASSERT(m_strings.contains(s)); 512 ASSERT(m_strings.contains(s));
513 513
514 m_strings.remove(s); 514 m_strings.remove(s);
515 } 515 }
OLDNEW
« no previous file with comments | « Source/core/xml/XPathNodeSet.cpp ('k') | Source/core/xml/XPathResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698