diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-24 10:05:58 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-24 10:05:58 -0800 |
commit | f3e685179ab248bdde01a240096d36ff6a21ee8f (patch) | |
tree | 7ffd9ced423893f55efcd3a0a514e98f60fa7f47 /core | |
parent | 50cce609050e1a40e1d6936e0a3f0614b4483eee (diff) | |
download | pdfium-f3e685179ab248bdde01a240096d36ff6a21ee8f.tar.xz |
Fix android build broken at e238549
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1724193005 .
Diffstat (limited to 'core')
-rw-r--r-- | core/src/fxge/android/fpf_skiafontmgr.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<CFPF_SkiaPathFont*>(*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; } } |