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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (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/modules/indexeddb/IDBObjectStore.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
index 34ff64c5ba89440f5749693ef14f883c79ab547d..eb6d1fd58abfb01b6967fa102ccc47930a4e400c 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -846,12 +846,12 @@ void IDBObjectStore::deleteIndex(const String& name,
backendDB()->deleteIndex(m_transaction->id(), id(), indexId);
- m_metadata->indexes.remove(indexId);
+ m_metadata->indexes.erase(indexId);
IDBIndexMap::iterator it = m_indexMap.find(name);
if (it != m_indexMap.end()) {
m_transaction->indexDeleted(it->value);
it->value->markDeleted();
- m_indexMap.remove(name);
+ m_indexMap.erase(name);
}
}

Powered by Google App Engine
This is Rietveld 408576698