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

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

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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_program.h ('k') | xfa/fxfa/fm2js/xfa_simpleexpression.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/src/fxfa/fm2js/xfa_program.h" 7 #include "xfa/fxfa/fm2js/xfa_program.h"
8 8
9 CXFA_FMProgram::CXFA_FMProgram() : m_globalFunction(0) {} 9 CXFA_FMProgram::CXFA_FMProgram() : m_globalFunction(0) {}
10 CXFA_FMProgram::~CXFA_FMProgram() { 10 CXFA_FMProgram::~CXFA_FMProgram() {
11 if (m_globalFunction != 0) { 11 if (m_globalFunction != 0) {
12 delete m_globalFunction; 12 delete m_globalFunction;
13 m_globalFunction = 0; 13 m_globalFunction = 0;
14 } 14 }
15 } 15 }
16 int32_t CXFA_FMProgram::Init(const CFX_WideStringC& wsFormcalc) { 16 int32_t CXFA_FMProgram::Init(const CFX_WideStringC& wsFormcalc) {
17 return m_parse.Init(wsFormcalc, &m_pErrorInfo); 17 return m_parse.Init(wsFormcalc, &m_pErrorInfo);
(...skipping 18 matching lines...) Expand all
36 } 36 }
37 m_globalFunction = 37 m_globalFunction =
38 new CXFA_FMFunctionDefinition(1, 1, FX_WSTRC(L""), 0, expressions); 38 new CXFA_FMFunctionDefinition(1, 1, FX_WSTRC(L""), 0, expressions);
39 return 0; 39 return 0;
40 } 40 }
41 int32_t CXFA_FMProgram::TranslateProgram(CFX_WideTextBuf& wsJavaScript) { 41 int32_t CXFA_FMProgram::TranslateProgram(CFX_WideTextBuf& wsJavaScript) {
42 m_globalFunction->ToJavaScript(wsJavaScript); 42 m_globalFunction->ToJavaScript(wsJavaScript);
43 wsJavaScript.AppendChar(0); 43 wsJavaScript.AppendChar(0);
44 return 0; 44 return 0;
45 } 45 }
OLDNEW
« no previous file with comments | « xfa/fxfa/fm2js/xfa_program.h ('k') | xfa/fxfa/fm2js/xfa_simpleexpression.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698