From 60627d6eafd025dde711e532eee6866840c04bef Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 9 Aug 2018 08:05:04 +0000 Subject: Change CPDF_Font::GetNextChar()'s in-out parameter to pass by pointer. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: Lei Zhang --- core/fpdfapi/font/cpdf_cmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fpdfapi/font/cpdf_cmap.h') diff --git a/core/fpdfapi/font/cpdf_cmap.h b/core/fpdfapi/font/cpdf_cmap.h index 781f0f9439..b3c09d520f 100644 --- a/core/fpdfapi/font/cpdf_cmap.h +++ b/core/fpdfapi/font/cpdf_cmap.h @@ -62,7 +62,7 @@ class CPDF_CMap : public Retainable { uint16_t CIDFromCharCode(uint32_t charcode) const; int GetCharSize(uint32_t charcode) const; - uint32_t GetNextChar(const ByteStringView& pString, size_t& offset) const; + uint32_t GetNextChar(const ByteStringView& pString, size_t* pOffset) const; size_t CountChar(const ByteStringView& pString) const; int AppendChar(char* str, uint32_t charcode) const; -- cgit v1.2.3