summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/xfa_lexer.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-05-16 09:38:49 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-16 14:40:59 +0000
commit2a835b7b902bc0b61b1a3618f5c82b91571ecd72 (patch)
tree99b66112f661b8ea9053223663f296545ed37e28 /xfa/fxfa/fm2js/xfa_lexer.h
parent58854942e06d96972bf4722ab0a90249650d07e0 (diff)
downloadpdfium-2a835b7b902bc0b61b1a3618f5c82b91571ecd72.tar.xz
Minor xfa_lexer.cpp cleanup
Remove the inc/dec/get methods that aren't helpful. Change methods to return void instead of uint32_t and make sure they set the proper error messages. Change-Id: I741316e7990a776d528625f34fd941316c524c15 Reviewed-on: https://pdfium-review.googlesource.com/5530 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/xfa_lexer.h')
-rw-r--r--xfa/fxfa/fm2js/xfa_lexer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/fm2js/xfa_lexer.h b/xfa/fxfa/fm2js/xfa_lexer.h
index 7968b78217..5dd10c2d63 100644
--- a/xfa/fxfa/fm2js/xfa_lexer.h
+++ b/xfa/fxfa/fm2js/xfa_lexer.h
@@ -108,10 +108,10 @@ class CXFA_FMLexer {
~CXFA_FMLexer();
CXFA_FMToken* NextToken();
- uint32_t Number(CXFA_FMToken* t, const wchar_t* p, const wchar_t*& pEnd);
- uint32_t String(CXFA_FMToken* t, const wchar_t* p, const wchar_t*& pEnd);
- uint32_t Identifiers(CXFA_FMToken* t, const wchar_t* p, const wchar_t*& pEnd);
- void Comment(const wchar_t* p, const wchar_t*& pEnd);
+ const wchar_t* Number(CXFA_FMToken* t, const wchar_t* p);
+ const wchar_t* String(CXFA_FMToken* t, const wchar_t* p);
+ const wchar_t* Identifiers(CXFA_FMToken* t, const wchar_t* p);
+ const wchar_t* Comment(const wchar_t* p);
XFA_FM_TOKEN IsKeyword(const CFX_WideStringC& p);
void SetCurrentLine(uint32_t line) { m_uCurrentLine = line; }
void SetToken(std::unique_ptr<CXFA_FMToken> pToken) {