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

Unified Diff: third_party/WebKit/Source/core/html/HTMLObjectElement.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/html/HTMLObjectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
index ee1eeb0ff72ef41c5cce1b2b7ffc2390c8120e3d..780bb4bb044790368fb6cad303f8804448ae6b31 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.cpp
@@ -162,7 +162,7 @@ void HTMLObjectElement::parametersForPlugin(Vector<String>& paramNames,
if (name.isEmpty())
continue;
- uniqueParamNames.add(name.impl());
+ uniqueParamNames.insert(name.impl());
paramNames.push_back(p->name());
paramValues.push_back(p->value());
@@ -191,7 +191,7 @@ void HTMLObjectElement::parametersForPlugin(Vector<String>& paramNames,
String codebase;
if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType)) {
codebase = "codebase";
- uniqueParamNames.add(
+ uniqueParamNames.insert(
codebase.impl()); // pretend we found it in a PARAM already
}

Powered by Google App Engine
This is Rietveld 408576698