summaryrefslogtreecommitdiff
path: root/core/include
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-01-06 01:52:42 -0800
committerLei Zhang <thestig@chromium.org>2016-01-06 01:52:42 -0800
commitec32127b105fc1ff74842dc939cb6fa7d23430b0 (patch)
tree84beb10b61a7a16b4ab83567a32e4e9212695a62 /core/include
parentc5b40ba5c4f993fa2445ad7db0c98de80aa43514 (diff)
downloadpdfium-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')
-rw-r--r--core/include/fpdfapi/fpdf_parser.h6
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;
};