From f3e685179ab248bdde01a240096d36ff6a21ee8f Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 24 Feb 2016 10:05:58 -0800 Subject: Fix android build broken at e238549 TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1724193005 . --- core/src/fxge/android/fpf_skiafontmgr.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core') diff --git a/core/src/fxge/android/fpf_skiafontmgr.cpp b/core/src/fxge/android/fpf_skiafontmgr.cpp index 9c36e6c99f..2d4a2c726b 100644 --- a/core/src/fxge/android/fpf_skiafontmgr.cpp +++ b/core/src/fxge/android/fpf_skiafontmgr.cpp @@ -221,7 +221,7 @@ CFPF_SkiaFontMgr::~CFPF_SkiaFontMgr() { pair.second->Release(); } m_FamilyFonts.clear(); - for (auto it = m_FontFaces.rbegin(); it != m_FontFaces.end(); ++it) { + for (auto it = m_FontFaces.rbegin(); it != m_FontFaces.rend(); ++it) { delete *it; } m_FontFaces.clear(); @@ -271,7 +271,7 @@ IFPF_Font* CFPF_SkiaFontMgr::CreateFont(const CFX_ByteStringC& bsFamilyname, int32_t nMax = -1; int32_t nGlyphNum = 0; for (auto it = m_FontFaces.rbegin(); it != m_FontFaces.rend(); ++it) { - CFPF_SkiaPathFont* pFontDes = *it; + CFPF_SkiaPathFont* pFontDes = static_cast(*it); if (!(pFontDes->m_dwCharsets & FPF_SkiaGetCharset(uCharset))) { continue; } @@ -304,19 +304,19 @@ IFPF_Font* CFPF_SkiaFontMgr::CreateFont(const CFX_ByteStringC& bsFamilyname, if (uCharset == FXFONT_DEFAULT_CHARSET || bMaybeSymbol) { if (nFind > nMax && bMatchedName) { nMax = nFind; - nItem = i; + nItem = it - m_FontFaces.rbegin(); } } else if (FPF_SkiaIsCJK(uCharset)) { if (bMatchedName || pFontDes->m_iGlyphNum > nGlyphNum) { - nItem = i; + nItem = it - m_FontFaces.rbegin(); nGlyphNum = pFontDes->m_iGlyphNum; } } else if (nFind > nMax) { nMax = nFind; - nItem = i; + nItem = it - m_FontFaces.rbegin(); } if (nExpectVal <= nFind) { - nItem = i; + nItem = it - m_FontFaces.rbegin(); break; } } -- cgit v1.2.3