summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/xfa_fmparse.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-05-16 12:17:50 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-16 16:29:23 +0000
commitc0d358ad234843a524a1bcc2a439f08ad0c64aa1 (patch)
treedfb046a476f5dece9f76764415e6f297591f1829 /xfa/fxfa/fm2js/xfa_fmparse.cpp
parent2eef64cba5c8e08a9e625f4aba5a7fbdc8e62bad (diff)
downloadpdfium-c0d358ad234843a524a1bcc2a439f08ad0c64aa1.tar.xz
Update formcalc return types
Update return types to be bools instead of ints. Make some methods private. Change-Id: I5d55c48a861f90e9bd116ef835c11cdb515002a6 Reviewed-on: https://pdfium-review.googlesource.com/5553 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/xfa_fmparse.cpp')
-rw-r--r--xfa/fxfa/fm2js/xfa_fmparse.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/fm2js/xfa_fmparse.cpp b/xfa/fxfa/fm2js/xfa_fmparse.cpp
index a7ba901c89..ad3a92abc3 100644
--- a/xfa/fxfa/fm2js/xfa_fmparse.cpp
+++ b/xfa/fxfa/fm2js/xfa_fmparse.cpp
@@ -833,7 +833,7 @@ std::unique_ptr<CXFA_FMExpression> CXFA_FMParse::ParseBlockExpression() {
std::unique_ptr<CXFA_FMExpression> CXFA_FMParse::ParseIfExpression() {
uint32_t line = m_pToken->m_uLinenum;
- const wchar_t* pStartPos = m_lexer->SavePos();
+ const wchar_t* pStartPos = m_lexer->GetPos();
NextToken();
Check(TOKlparen);
std::unique_ptr<CXFA_FMSimpleExpression> pExpression;
@@ -851,7 +851,7 @@ std::unique_ptr<CXFA_FMExpression> CXFA_FMParse::ParseIfExpression() {
m_pToken->m_type = TOKidentifier;
m_pToken->m_wstring = L"if";
m_lexer->SetToken(std::move(pNewToken));
- m_lexer->RestorePos(pStartPos);
+ m_lexer->SetPos(pStartPos);
return ParseExpExpression();
}
Check(TOKthen);