summaryrefslogtreecommitdiff
path: root/core/include/fpdfapi
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-01-06 01:46:27 -0800
committerLei Zhang <thestig@chromium.org>2016-01-06 01:46:27 -0800
commit61197421793e24add7a250d3f15ab83dc75f80c6 (patch)
tree0709290c866dfbf52b6e55cf07ed0aaaf53a59ea /core/include/fpdfapi
parente093833b7a2d7a4991ca756ff88e7cda0fcc6e4d (diff)
downloadpdfium-61197421793e24add7a250d3f15ab83dc75f80c6.tar.xz
Change CPDF_SyntaxParser::GetNextWord() to not pass by non-const ref.
Change the internal version to GetNextWordInternal(). R=weili@chromium.org Review URL: https://codereview.chromium.org/1558083002 .
Diffstat (limited to 'core/include/fpdfapi')
-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;
};