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

Unified Diff: Source/platform/fonts/WidthCache.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/exported/WebHTTPLoadInfo.cpp ('k') | Source/platform/fonts/harfbuzz/HarfBuzzFace.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/WidthCache.h
diff --git a/Source/platform/fonts/WidthCache.h b/Source/platform/fonts/WidthCache.h
index 82f1b1e3d6d4779d151be8e794f40bbb628c9257..813d8e61d0e9700c72267f3d6ac196aa7ca98fcf 100644
--- a/Source/platform/fonts/WidthCache.h
+++ b/Source/platform/fonts/WidthCache.h
@@ -159,7 +159,7 @@ private:
if (length == 1) {
SingleCharMap::AddResult addResult = m_singleCharMap.add(run[0], entry);
isNewEntry = addResult.isNewEntry;
- value = &addResult.iterator->value;
+ value = &addResult.storedValue->value;
} else {
SmallStringKey smallStringKey;
if (run.is8Bit())
@@ -169,7 +169,7 @@ private:
Map::AddResult addResult = m_map.add(smallStringKey, entry);
isNewEntry = addResult.isNewEntry;
- value = &addResult.iterator->value;
+ value = &addResult.storedValue->value;
}
// Cache hit: ramp up by sampling the next few words.
« no previous file with comments | « Source/platform/exported/WebHTTPLoadInfo.cpp ('k') | Source/platform/fonts/harfbuzz/HarfBuzzFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698