diff options
author | dan sinclair <dsinclair@chromium.org> | 2017-05-17 22:17:34 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-18 15:27:37 +0000 |
commit | 2034b941dfa07d30c286bfcceffd6904740ac446 (patch) | |
tree | 1bc3c9be4d3108b53ced4db9837187dddf6df88d /xfa/fxfa/fm2js/cxfa_fmparse.h | |
parent | cfd56852b6375d2b4eea473399231caf7dcdbf36 (diff) | |
download | pdfium-2034b941dfa07d30c286bfcceffd6904740ac446.tar.xz |
Remove CXFA_FMErrorInfo
This Cl removes the CXFA_FMErrorInfo class. The message was never output, just
used as a flag to determine if there was an error. The class has been replaced
with a boolean.
Change-Id: I1cde99ce6957f5f8c6be0755a198d80ec8378b3a
Reviewed-on: https://pdfium-review.googlesource.com/5653
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmparse.h')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmparse.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmparse.h b/xfa/fxfa/fm2js/cxfa_fmparse.h index 625145e7a2..0f7109135d 100644 --- a/xfa/fxfa/fm2js/cxfa_fmparse.h +++ b/xfa/fxfa/fm2js/cxfa_fmparse.h @@ -15,16 +15,16 @@ class CXFA_FMParse { public: - CXFA_FMParse(const CFX_WideStringC& wsFormcalc, CXFA_FMErrorInfo* pErrorInfo); + explicit CXFA_FMParse(const CFX_WideStringC& wsFormcalc); ~CXFA_FMParse(); std::unique_ptr<CXFA_FMFunctionDefinition> Parse(); + bool HasError() const; private: void NextToken(); void Check(XFA_FM_TOKEN op); - void Error(const wchar_t* msg, ...); - bool HasError() const; + std::vector<std::unique_ptr<CXFA_FMExpression>> ParseTopExpression(); std::unique_ptr<CXFA_FMExpression> ParseFunction(); std::unique_ptr<CXFA_FMExpression> ParseExpression(); @@ -53,7 +53,7 @@ class CXFA_FMParse { std::unique_ptr<CXFA_FMLexer> m_lexer; CXFA_FMToken* m_pToken; - CXFA_FMErrorInfo* const m_pErrorInfo; + bool m_ParserError; }; #endif // XFA_FXFA_FM2JS_CXFA_FMPARSE_H_ |