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

Unified Diff: third_party/WebKit/Source/web/WebHistoryItem.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/web/WebHistoryItem.cpp
diff --git a/third_party/WebKit/Source/web/WebHistoryItem.cpp b/third_party/WebKit/Source/web/WebHistoryItem.cpp
index 689741728f813c7b54d0b2d84bda78ab97d7a642..bdd4bf713e7125ea38d96a924fdb731bfd2de856 100644
--- a/third_party/WebKit/Source/web/WebHistoryItem.cpp
+++ b/third_party/WebKit/Source/web/WebHistoryItem.cpp
@@ -184,14 +184,14 @@ WebVector<WebString> WebHistoryItem::getReferencedFilePaths() const {
for (size_t i = 0; i < formData->elements().size(); ++i) {
const FormDataElement& element = formData->elements()[i];
if (element.m_type == FormDataElement::encodedFile)
- filePaths.add(element.m_filename);
+ filePaths.insert(element.m_filename);
}
}
const Vector<String>& referencedFilePaths =
m_private->getReferencedFilePaths();
for (size_t i = 0; i < referencedFilePaths.size(); ++i)
- filePaths.add(referencedFilePaths[i]);
+ filePaths.insert(referencedFilePaths[i]);
Vector<String> results;
copyToVector(filePaths, results);
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698