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

Unified Diff: third_party/WebKit/Source/core/xml/XPathPredicate.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/Source/core/xml/XPathPredicate.cpp
diff --git a/third_party/WebKit/Source/core/xml/XPathPredicate.cpp b/third_party/WebKit/Source/core/xml/XPathPredicate.cpp
index 55b27b89c320f6541b7c52161d3997050943ef81..0b8137b66321d539f69daa8662538e6eb3090567 100644
--- a/third_party/WebKit/Source/core/xml/XPathPredicate.cpp
+++ b/third_party/WebKit/Source/core/xml/XPathPredicate.cpp
@@ -240,10 +240,10 @@ Value Union::evaluate(EvaluationContext& context) const {
HeapHashSet<Member<Node>> nodes;
for (const auto& node : resultSet)
- nodes.add(node);
+ nodes.insert(node);
for (const auto& node : rhsNodes) {
- if (nodes.add(node).isNewEntry)
+ if (nodes.insert(node).isNewEntry)
resultSet.append(node);
}
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathPath.cpp ('k') | third_party/WebKit/Source/modules/accessibility/AXARIAGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698