From 07388cae6fb525ccecc20f66ce530ac52d30d754 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 30 Aug 2018 20:24:22 +0000 Subject: Use span<> in CFX_FontMgr Change-Id: I3f811b20399efac1b511e75d950699eee7192c65 Reviewed-on: https://pdfium-review.googlesource.com/41650 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fxge/cfx_font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxge/cfx_font.cpp') 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 src_span) { m_pFontDataAllocation = std::vector(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; -- cgit v1.2.3