Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1181)

Side by Side Diff: xfa/fxfa/fm2js/xfa_fmparse.cpp

Issue 2071683002: Make code compile with clang_use_chrome_plugin (part V) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: clean up Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/fm2js/xfa_fmparse.h ('k') | xfa/fxfa/fm2js/xfa_lexer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fxfa/fm2js/xfa_fmparse.h" 7 #include "xfa/fxfa/fm2js/xfa_fmparse.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
11 CXFA_FMParse::CXFA_FMParse() : m_pToken(nullptr), m_pErrorInfo(0) {} 11 CXFA_FMParse::CXFA_FMParse() : m_pToken(nullptr), m_pErrorInfo(0) {}
12 12
13 CXFA_FMParse::~CXFA_FMParse() {}
14
13 int32_t CXFA_FMParse::Init(const CFX_WideStringC& wsFormcalc, 15 int32_t CXFA_FMParse::Init(const CFX_WideStringC& wsFormcalc,
14 CXFA_FMErrorInfo* pErrorInfo) { 16 CXFA_FMErrorInfo* pErrorInfo) {
15 m_pErrorInfo = pErrorInfo; 17 m_pErrorInfo = pErrorInfo;
16 m_lexer.reset(new CXFA_FMLexer(wsFormcalc, m_pErrorInfo)); 18 m_lexer.reset(new CXFA_FMLexer(wsFormcalc, m_pErrorInfo));
17 return 0; 19 return 0;
18 } 20 }
19 21
20 void CXFA_FMParse::NextToken() { 22 void CXFA_FMParse::NextToken() {
21 m_pToken = m_lexer->NextToken(); 23 m_pToken = m_lexer->NextToken();
22 while (m_pToken->m_type == TOKreserver) { 24 while (m_pToken->m_type == TOKreserver) {
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 NextToken(); 1042 NextToken();
1041 e.reset(ParseBlockExpression()); 1043 e.reset(ParseBlockExpression());
1042 Check(TOKend); 1044 Check(TOKend);
1043 if (m_pErrorInfo->message.IsEmpty()) { 1045 if (m_pErrorInfo->message.IsEmpty()) {
1044 e.reset(new CXFA_FMDoExpression(line, e.release())); 1046 e.reset(new CXFA_FMDoExpression(line, e.release()));
1045 } else { 1047 } else {
1046 e.reset(); 1048 e.reset();
1047 } 1049 }
1048 return e.release(); 1050 return e.release();
1049 } 1051 }
OLDNEW
« no previous file with comments | « xfa/fxfa/fm2js/xfa_fmparse.h ('k') | xfa/fxfa/fm2js/xfa_lexer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698