diff options
author | Lei Zhang <thestig@chromium.org> | 2018-08-09 08:05:04 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-09 08:05:04 +0000 |
commit | 60627d6eafd025dde711e532eee6866840c04bef (patch) | |
tree | 0988f5945d243edb5eea2e189d8e52c180ffba0d /core/fpdfapi/font/cpdf_cidfont.cpp | |
parent | 74557b1b4746bc80283f0acf248242fdcab71deb (diff) | |
download | pdfium-60627d6eafd025dde711e532eee6866840c04bef.tar.xz |
Change CPDF_Font::GetNextChar()'s in-out parameter to pass by pointer.chromium/3518
Instead of passing by non-const reference. Adjust the override in
CPDF_CIDFont and CPDF_CMap::GetNextChar() as well.
Change-Id: I0ee6dc21077101cbeeb0e334498075fc463a2d65
Reviewed-on: https://pdfium-review.googlesource.com/39492
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/font/cpdf_cidfont.cpp')
-rw-r--r-- | core/fpdfapi/font/cpdf_cidfont.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/font/cpdf_cidfont.cpp b/core/fpdfapi/font/cpdf_cidfont.cpp index b25b728ce0..b73e0b8c56 100644 --- a/core/fpdfapi/font/cpdf_cidfont.cpp +++ b/core/fpdfapi/font/cpdf_cidfont.cpp @@ -736,8 +736,8 @@ int CPDF_CIDFont::GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) { } uint32_t CPDF_CIDFont::GetNextChar(const ByteStringView& pString, - size_t& offset) const { - return m_pCMap->GetNextChar(pString, offset); + size_t* pOffset) const { + return m_pCMap->GetNextChar(pString, pOffset); } int CPDF_CIDFont::GetCharSize(uint32_t charcode) const { |