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

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

Issue 1846353002: Remove CFX_ string type static initializers. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/fgas/localization/fgas_locale.cpp ('k') | xfa/fxfa/fm2js/xfa_simpleexpression.cpp » ('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_expression.h" 7 #include "xfa/fxfa/fm2js/xfa_expression.h"
8 8
9 #include "core/fxcrt/include/fx_basic.h" 9 #include "core/fxcrt/include/fx_basic.h"
10 10
11 namespace { 11 namespace {
12 12
13 const CFX_WideStringC RUNTIMEBLOCKTEMPARRAY = 13 const FX_WCHAR RUNTIMEBLOCKTEMPARRAY[] =
14 FX_WSTRC(L"foxit_xfa_formcalc_runtime_block_temp_array"); 14 L"foxit_xfa_formcalc_runtime_block_temp_array";
15 15
16 const CFX_WideStringC RUNTIMEBLOCKTEMPARRAYINDEX = 16 const FX_WCHAR RUNTIMEBLOCKTEMPARRAYINDEX[] =
17 FX_WSTRC(L"foxit_xfa_formcalc_runtime_block_temp_array_index"); 17 L"foxit_xfa_formcalc_runtime_block_temp_array_index";
18 18
19 } // namespace 19 } // namespace
20 20
21 CXFA_FMExpression::CXFA_FMExpression(uint32_t line) 21 CXFA_FMExpression::CXFA_FMExpression(uint32_t line)
22 : m_type(XFA_FM_EXPTYPE_UNKNOWN), m_line(line) {} 22 : m_type(XFA_FM_EXPTYPE_UNKNOWN), m_line(line) {}
23 23
24 CXFA_FMExpression::CXFA_FMExpression(uint32_t line, XFA_FM_EXPTYPE type) 24 CXFA_FMExpression::CXFA_FMExpression(uint32_t line, XFA_FM_EXPTYPE type)
25 : m_type(type), m_line(line) {} 25 : m_type(type), m_line(line) {}
26 26
27 void CXFA_FMExpression::ToJavaScript(CFX_WideTextBuf& javascript) {} 27 void CXFA_FMExpression::ToJavaScript(CFX_WideTextBuf& javascript) {}
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 } 618 }
619 javascript << FX_WSTRC(L" = "); 619 javascript << FX_WSTRC(L" = ");
620 javascript << RUNTIMEBLOCKTEMPARRAY; 620 javascript << RUNTIMEBLOCKTEMPARRAY;
621 javascript << FX_WSTRC(L"["); 621 javascript << FX_WSTRC(L"[");
622 javascript << RUNTIMEBLOCKTEMPARRAYINDEX; 622 javascript << RUNTIMEBLOCKTEMPARRAYINDEX;
623 javascript << FX_WSTRC(L"++];\n"); 623 javascript << FX_WSTRC(L"++];\n");
624 m_pList->ToImpliedReturnJS(javascript); 624 m_pList->ToImpliedReturnJS(javascript);
625 javascript << FX_WSTRC(L"}\n"); 625 javascript << FX_WSTRC(L"}\n");
626 javascript << FX_WSTRC(L"}\n"); 626 javascript << FX_WSTRC(L"}\n");
627 } 627 }
OLDNEW
« no previous file with comments | « xfa/fgas/localization/fgas_locale.cpp ('k') | xfa/fxfa/fm2js/xfa_simpleexpression.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698