diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-02-19 16:44:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-19 16:44:22 +0000 |
commit | c8785f736df57d7d20649d803818a30eb55b2ee8 (patch) | |
tree | 3eb05bb37167f7baaa74bfaaae9a1584c24ef322 /xfa/fxfa/fm2js/cxfa_fmparser.h | |
parent | 916b4b05ce7b4dd5a254a72a1d98051655627dbc (diff) | |
download | pdfium-c8785f736df57d7d20649d803818a30eb55b2ee8.tar.xz |
Simplify CXFA_FMToken creation
This CL converts the CXFA_FMToken usages into an object instead of a
pointer. A copy constructor has been added. The line number was removed
from the token and is retrieved from the lexer where needed.
Change-Id: I94c632653e9bf1439d2ddf374a816ae0d10b5b67
Reviewed-on: https://pdfium-review.googlesource.com/27192
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmparser.h')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmparser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmparser.h b/xfa/fxfa/fm2js/cxfa_fmparser.h index c536838a3c..3958930224 100644 --- a/xfa/fxfa/fm2js/cxfa_fmparser.h +++ b/xfa/fxfa/fm2js/cxfa_fmparser.h @@ -57,7 +57,7 @@ class CXFA_FMParser { std::unique_ptr<CXFA_FMSimpleExpression> ParseIndexExpression(); std::unique_ptr<CXFA_FMLexer> m_lexer; - std::unique_ptr<CXFA_FMToken> m_token; + CXFA_FMToken m_token; bool m_error; unsigned long m_parse_depth; unsigned long m_max_parse_depth; |