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

Unified Diff: third_party/WebKit/Source/core/xml/XPathPath.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/XPathPath.cpp
diff --git a/third_party/WebKit/Source/core/xml/XPathPath.cpp b/third_party/WebKit/Source/core/xml/XPathPath.cpp
index 52cd1f95af5f1a74e2f7b49009fd938a30c01a1b..6960e729077ab451ddae8d9b7ab1fbb0cf1d07f1 100644
--- a/third_party/WebKit/Source/core/xml/XPathPath.cpp
+++ b/third_party/WebKit/Source/core/xml/XPathPath.cpp
@@ -145,7 +145,8 @@ void LocationPath::evaluate(EvaluationContext& context, NodeSet& nodes) const {
resultIsSorted = false;
for (const auto& node : *matches) {
- if (!needToCheckForDuplicateNodes || newNodesSet.add(node).isNewEntry)
+ if (!needToCheckForDuplicateNodes ||
+ newNodesSet.insert(node).isNewEntry)
newNodes->append(node);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/xml/XPathParser.cpp ('k') | third_party/WebKit/Source/core/xml/XPathPredicate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698