From ec32127b105fc1ff74842dc939cb6fa7d23430b0 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 6 Jan 2016 01:52:42 -0800 Subject: Merge to XFA: Change CPDF_SyntaxParser::GetNextWord() to not pass by non-const ref. Change the internal version to GetNextWordInternal(). TBR=weili@chromium.org Review URL: https://codereview.chromium.org/1558083002 . (cherry picked from commit 61197421793e24add7a250d3f15ab83dc75f80c6) Review URL: https://codereview.chromium.org/1561093002 . --- core/include/fpdfapi/fpdf_parser.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core/include/fpdfapi') diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h index 1b1b022fc6..756850932e 100644 --- a/core/include/fpdfapi/fpdf_parser.h +++ b/core/include/fpdfapi/fpdf_parser.h @@ -288,7 +288,7 @@ class CPDF_SyntaxParser { FX_BOOL ReadBlock(uint8_t* pBuf, FX_DWORD size); - CFX_ByteString GetNextWord(FX_BOOL& bIsNumber); + CFX_ByteString GetNextWord(bool* bIsNumber); protected: friend class CPDF_Parser; @@ -302,7 +302,7 @@ class CPDF_SyntaxParser { FX_BOOL GetCharAtBackward(FX_FILESIZE pos, uint8_t& ch); - void GetNextWord(); + void GetNextWordInternal(bool* bIsNumber); bool IsWholeWord(FX_FILESIZE startpos, FX_FILESIZE limit, @@ -344,8 +344,6 @@ class CPDF_SyntaxParser { FX_DWORD m_WordSize; - FX_BOOL m_bIsNumber; - FX_FILESIZE m_dwWordPos; }; -- cgit v1.2.3