diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-06 01:52:42 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-06 01:52:42 -0800 |
commit | ec32127b105fc1ff74842dc939cb6fa7d23430b0 (patch) | |
tree | 84beb10b61a7a16b4ab83567a32e4e9212695a62 /core/include/fpdfapi | |
parent | c5b40ba5c4f993fa2445ad7db0c98de80aa43514 (diff) | |
download | pdfium-ec32127b105fc1ff74842dc939cb6fa7d23430b0.tar.xz |
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 .
Diffstat (limited to 'core/include/fpdfapi')
-rw-r--r-- | core/include/fpdfapi/fpdf_parser.h | 6 |
1 files changed, 2 insertions, 4 deletions
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; }; |