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

Unified Diff: Source/platform/fonts/win/UniscribeHelper.cpp

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/fonts/skia/SimpleFontDataSkia.cpp ('k') | Source/platform/graphics/ImageDecodingStore.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/win/UniscribeHelper.cpp
diff --git a/Source/platform/fonts/win/UniscribeHelper.cpp b/Source/platform/fonts/win/UniscribeHelper.cpp
index 3b9a3d825294e92101c5b79016805153cf8e47bd..52e471e4f5f7a422494e776ae5a00f8309aed31f 100644
--- a/Source/platform/fonts/win/UniscribeHelper.cpp
+++ b/Source/platform/fonts/win/UniscribeHelper.cpp
@@ -702,7 +702,7 @@ static bool getDerivedFontData(const UChar* family, int style, LOGFONT* logfont,
// check it against what we actually want (as is done in
// FontCacheWin.cpp)
ShaperFontDataCache::AddResult entry = gFontDataCache->add(fontKey, ShaperFontData());
- derived = &entry.iterator->value;
+ derived = &entry.storedValue->value;
derived->hfont = CreateFontIndirect(logfont);
// GetAscent may return kUndefinedAscent, but we still want to
// cache it so that we won't have to call CreateFontIndirect once
« no previous file with comments | « Source/platform/fonts/skia/SimpleFontDataSkia.cpp ('k') | Source/platform/graphics/ImageDecodingStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698