diff options
author | Lei Zhang <thestig@chromium.org> | 2018-03-19 20:09:47 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-19 20:09:47 +0000 |
commit | ef44194f4f4c71b6e1bbaecb5ffff503d780766c (patch) | |
tree | 5f8749a34a7b9c9317cd9350f0a763d3bf58a67c /core/fpdftext/cpdf_textpage.h | |
parent | b020a8ca7def8d7f8298bb754870e7e808a070e3 (diff) | |
download | pdfium-ef44194f4f4c71b6e1bbaecb5ffff503d780766c.tar.xz |
Remove non-const ref parameters in CPDF_TextPage.
Change-Id: Ia6cb19269ef93440669b68d76c3c378a5d4da7a5
Reviewed-on: https://pdfium-review.googlesource.com/28735
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdftext/cpdf_textpage.h')
-rw-r--r-- | core/fpdftext/cpdf_textpage.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdftext/cpdf_textpage.h b/core/fpdftext/cpdf_textpage.h index c87ab00f26..aa244b8dea 100644 --- a/core/fpdftext/cpdf_textpage.h +++ b/core/fpdftext/cpdf_textpage.h @@ -15,6 +15,7 @@ #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/unowned_ptr.h" +#include "third_party/base/optional.h" class CPDF_Font; class CPDF_FormObject; @@ -142,7 +143,7 @@ class CPDF_TextPage { CPDF_PageObjectList::const_iterator ObjPos); GenerateCharacter ProcessInsertObject(const CPDF_TextObject* pObj, const CFX_Matrix& formMatrix); - bool GenerateCharInfo(wchar_t unicode, PAGECHAR_INFO& info); + Optional<PAGECHAR_INFO> GenerateCharInfo(wchar_t unicode); bool IsSameAsPreTextObject(CPDF_TextObject* pTextObj, const CPDF_PageObjectList* pObjList, CPDF_PageObjectList::const_iterator ObjPos); @@ -151,7 +152,7 @@ class CPDF_TextPage { void CloseTempLine(); FPDFText_MarkedContent PreMarkedContent(PDFTEXT_Obj pObj); void ProcessMarkedContent(PDFTEXT_Obj pObj); - void CheckMarkedContentObject(int32_t& start, int32_t& nCount) const; + void CheckMarkedContentObject(int32_t* pStart, int32_t* pCount) const; void FindPreviousTextObject(); void AddCharInfoByLRDirection(wchar_t wChar, PAGECHAR_INFO info); void AddCharInfoByRLDirection(wchar_t wChar, PAGECHAR_INFO info); |