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

Unified Diff: third_party/WebKit/Source/wtf/text/StringImpl.cpp

Issue 2693433002: Migrate WTF::HashMap::add() to ::insert() [final] (Closed)
Patch Set: more platform-specific references Created 3 years, 10 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 | « third_party/WebKit/Source/wtf/HashMap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/StringImpl.cpp
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.cpp b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
index c784115ff1cc1fd89b1d51967540671b41ccd071..38252ebcb2607e78db212fb2bcc68fa9510c34b6 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.cpp
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
@@ -450,7 +450,7 @@ StringImpl* StringImpl::createStatic(const char* string,
DCHECK(isMainThread());
m_highestStaticStringLength = std::max(m_highestStaticStringLength, length);
- staticStrings().add(hash, impl);
+ staticStrings().insert(hash, impl);
WTF_ANNOTATE_BENIGN_RACE(impl,
"Benign race on the reference counter of a static "
"string created by StringImpl::createStatic");
« no previous file with comments | « third_party/WebKit/Source/wtf/HashMap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698