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

Unified Diff: Source/wtf/HashCountedSet.h

Issue 167123002: Simpler return value from HashTable::add()/HashMap::add() and others (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « Source/platform/weborigin/SecurityPolicy.cpp ('k') | Source/wtf/HashMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/HashCountedSet.h
diff --git a/Source/wtf/HashCountedSet.h b/Source/wtf/HashCountedSet.h
index fbd71d228b4b3aadc172794ec7899f38589a499c..18dbd321079c2746d64cb984e8af09b73d6f0aab 100644
--- a/Source/wtf/HashCountedSet.h
+++ b/Source/wtf/HashCountedSet.h
@@ -154,7 +154,7 @@ namespace WTF {
inline typename HashCountedSet<Value, HashFunctions, Traits>::AddResult HashCountedSet<Value, HashFunctions, Traits>::add(const ValueType &value)
{
AddResult result = m_impl.add(value, 0);
- ++result.iterator->value;
+ ++result.storedValue->value;
return result;
}
« no previous file with comments | « Source/platform/weborigin/SecurityPolicy.cpp ('k') | Source/wtf/HashMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698