From c8785f736df57d7d20649d803818a30eb55b2ee8 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Mon, 19 Feb 2018 16:44:22 +0000 Subject: 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 Reviewed-by: Ryan Harrison --- xfa/fxfa/fm2js/cxfa_fmparser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/fm2js/cxfa_fmparser.h') 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 ParseIndexExpression(); std::unique_ptr m_lexer; - std::unique_ptr m_token; + CXFA_FMToken m_token; bool m_error; unsigned long m_parse_depth; unsigned long m_max_parse_depth; -- cgit v1.2.3