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

Unified Diff: Source/bindings/core/v8/DOMWrapperMap.h

Issue 411273002: Replace further questionable HashMap::add usages in bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | Source/bindings/core/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/DOMWrapperMap.h
diff --git a/Source/bindings/core/v8/DOMWrapperMap.h b/Source/bindings/core/v8/DOMWrapperMap.h
index 00c37089574d9e365f44ce0044a9137b79460e4b..75a962e2b0b2e13abed4cc0016044a5a7c26bd73 100644
--- a/Source/bindings/core/v8/DOMWrapperMap.h
+++ b/Source/bindings/core/v8/DOMWrapperMap.h
@@ -108,7 +108,7 @@ private:
Impl* impl, KeyType* key, v8::PersistentContainerValue value)
{
v8::PersistentContainerValue oldValue = Get(impl, key);
- impl->add(key, value);
+ impl->set(key, value);
return oldValue;
}
static v8::PersistentContainerValue Get(const Impl* impl, KeyType* key)
« no previous file with comments | « no previous file | Source/bindings/core/v8/SerializedScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698