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

Side by Side Diff: xfa/fxfa/parser/xfa_script_nodehelper.cpp

Issue 1888103002: Replace calls to deprecated CFX_{Wide,Byte}String::Empty() (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/fxfa/parser/xfa_parser_imp.cpp ('k') | xfa/fxfa/parser/xfa_script_resolveprocessor.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/parser/xfa_script_nodehelper.h" 7 #include "xfa/fxfa/parser/xfa_script_nodehelper.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" 10 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 if (child == pNode) { 254 if (child == pNode) {
255 return i; 255 return i;
256 } 256 }
257 } 257 }
258 return 0; 258 return 0;
259 } 259 }
260 void CXFA_NodeHelper::XFA_GetNameExpression(CXFA_Node* refNode, 260 void CXFA_NodeHelper::XFA_GetNameExpression(CXFA_Node* refNode,
261 CFX_WideString& wsName, 261 CFX_WideString& wsName,
262 FX_BOOL bIsAllPath, 262 FX_BOOL bIsAllPath,
263 XFA_LOGIC_TYPE eLogicType) { 263 XFA_LOGIC_TYPE eLogicType) {
264 wsName.Empty(); 264 wsName.clear();
265 if (bIsAllPath) { 265 if (bIsAllPath) {
266 XFA_GetNameExpression(refNode, wsName, FALSE, eLogicType); 266 XFA_GetNameExpression(refNode, wsName, FALSE, eLogicType);
267 CFX_WideString wsParent; 267 CFX_WideString wsParent;
268 CXFA_Node* parent = 268 CXFA_Node* parent =
269 XFA_ResolveNodes_GetParent(refNode, XFA_LOGIC_NoTransparent); 269 XFA_ResolveNodes_GetParent(refNode, XFA_LOGIC_NoTransparent);
270 while (parent) { 270 while (parent) {
271 XFA_GetNameExpression(parent, wsParent, FALSE, eLogicType); 271 XFA_GetNameExpression(parent, wsParent, FALSE, eLogicType);
272 wsParent += L"."; 272 wsParent += L".";
273 wsParent += wsName; 273 wsParent += wsName;
274 wsName = wsParent; 274 wsName = wsParent;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 m_eLastCreateType = XFA_ELEMENT_DataValue; 420 m_eLastCreateType = XFA_ELEMENT_DataValue;
421 } 421 }
422 } 422 }
423 FX_BOOL CXFA_NodeHelper::XFA_NodeIsProperty(CXFA_Node* refNode) { 423 FX_BOOL CXFA_NodeHelper::XFA_NodeIsProperty(CXFA_Node* refNode) {
424 CXFA_Node* parent = 424 CXFA_Node* parent =
425 XFA_ResolveNodes_GetParent(refNode, XFA_LOGIC_NoTransparent); 425 XFA_ResolveNodes_GetParent(refNode, XFA_LOGIC_NoTransparent);
426 return parent && refNode && 426 return parent && refNode &&
427 XFA_GetPropertyOfElement(parent->GetClassID(), refNode->GetClassID(), 427 XFA_GetPropertyOfElement(parent->GetClassID(), refNode->GetClassID(),
428 XFA_XDPPACKET_UNKNOWN); 428 XFA_XDPPACKET_UNKNOWN);
429 } 429 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_parser_imp.cpp ('k') | xfa/fxfa/parser/xfa_script_resolveprocessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698