diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-30 20:24:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-30 20:24:22 +0000 |
commit | 07388cae6fb525ccecc20f66ce530ac52d30d754 (patch) | |
tree | 62c7dfab38220b997566c6e9821de38b886dc11c /core/fxge/cfx_font.cpp | |
parent | b6e7d49ad5f3a54b69f70b347bd41108493918b7 (diff) | |
download | pdfium-07388cae6fb525ccecc20f66ce530ac52d30d754.tar.xz |
Use span<> in CFX_FontMgr
Change-Id: I3f811b20399efac1b511e75d950699eee7192c65
Reviewed-on: https://pdfium-review.googlesource.com/41650
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/cfx_font.cpp')
-rw-r--r-- | core/fxge/cfx_font.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/cfx_font.cpp b/core/fxge/cfx_font.cpp index 3c2b48d4a3..4276d834fe 100644 --- a/core/fxge/cfx_font.cpp +++ b/core/fxge/cfx_font.cpp @@ -381,8 +381,8 @@ uint32_t CFX_Font::GetGlyphWidth(uint32_t glyph_index) { bool CFX_Font::LoadEmbedded(pdfium::span<const uint8_t> src_span) { m_pFontDataAllocation = std::vector<uint8_t>(src_span.begin(), src_span.end()); - m_Face = CFX_GEModule::Get()->GetFontMgr()->GetFixedFace( - m_pFontDataAllocation.data(), m_pFontDataAllocation.size(), 0); + m_Face = + CFX_GEModule::Get()->GetFontMgr()->GetFixedFace(m_pFontDataAllocation, 0); m_bEmbedded = true; m_FontData = m_pFontDataAllocation; return !!m_Face; |