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

Unified Diff: third_party/WebKit/Source/core/loader/CrossOriginPreflightResultCache.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/loader/CrossOriginPreflightResultCache.cpp
diff --git a/third_party/WebKit/Source/core/loader/CrossOriginPreflightResultCache.cpp b/third_party/WebKit/Source/core/loader/CrossOriginPreflightResultCache.cpp
index e987bfba342371b8d15f97bcce0b4c0c1a100c04..513e453460b0e5a1a902e7250d0d1c6613dbca50 100644
--- a/third_party/WebKit/Source/core/loader/CrossOriginPreflightResultCache.cpp
+++ b/third_party/WebKit/Source/core/loader/CrossOriginPreflightResultCache.cpp
@@ -72,7 +72,7 @@ static void addToAccessControlAllowList(const String& string,
while (end && isSpaceOrNewline((*stringImpl)[end]))
--end;
- set.add(string.substring(start, end - start + 1));
+ set.insert(string.substring(start, end - start + 1));
}
template <class HashType>

Powered by Google App Engine
This is Rietveld 408576698