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

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

Issue 1979723003: Make CFX_WideString(const CFX_WideString&) explicit. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Override Created 4 years, 7 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
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_imp.h" 7 #include "xfa/fxfa/parser/xfa_script_imp.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fxfa/app/xfa_ffnotify.h" 10 #include "xfa/fxfa/app/xfa_ffnotify.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 CXFA_Node* pNode = ToNode(pObject); 284 CXFA_Node* pNode = ToNode(pObject);
285 CXFA_Node* pPropOrChild = NULL; 285 CXFA_Node* pPropOrChild = NULL;
286 const XFA_ELEMENTINFO* lpElementInfo = 286 const XFA_ELEMENTINFO* lpElementInfo =
287 XFA_GetElementByName(wsPropName.AsStringC()); 287 XFA_GetElementByName(wsPropName.AsStringC());
288 if (lpElementInfo) { 288 if (lpElementInfo) {
289 pPropOrChild = pNode->GetProperty(0, lpElementInfo->eName); 289 pPropOrChild = pNode->GetProperty(0, lpElementInfo->eName);
290 } else { 290 } else {
291 pPropOrChild = pNode->GetFirstChildByName(wsPropName.AsStringC()); 291 pPropOrChild = pNode->GetFirstChildByName(wsPropName.AsStringC());
292 } 292 }
293 if (pPropOrChild) { 293 if (pPropOrChild) {
294 CFX_WideString wsDefaultName = FX_WSTRC(L"{default}"); 294 CFX_WideString wsDefaultName(L"{default}");
295 const XFA_SCRIPTATTRIBUTEINFO* lpAttributeInfo = 295 const XFA_SCRIPTATTRIBUTEINFO* lpAttributeInfo =
296 XFA_GetScriptAttributeByName(pPropOrChild->GetClassID(), 296 XFA_GetScriptAttributeByName(pPropOrChild->GetClassID(),
297 wsDefaultName.AsStringC()); 297 wsDefaultName.AsStringC());
298 if (lpAttributeInfo) { 298 if (lpAttributeInfo) {
299 (pPropOrChild->*(lpAttributeInfo->lpfnCallback))( 299 (pPropOrChild->*(lpAttributeInfo->lpfnCallback))(
300 hValue, TRUE, (XFA_ATTRIBUTE)lpAttributeInfo->eAttribute); 300 hValue, TRUE, (XFA_ATTRIBUTE)lpAttributeInfo->eAttribute);
301 return; 301 return;
302 } 302 }
303 } 303 }
304 } 304 }
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 } 760 }
761 } 761 }
762 void CXFA_ScriptContext::AddNodesOfRunScript(CXFA_Node* pNode) { 762 void CXFA_ScriptContext::AddNodesOfRunScript(CXFA_Node* pNode) {
763 if (!m_pScriptNodeArray) { 763 if (!m_pScriptNodeArray) {
764 return; 764 return;
765 } 765 }
766 if (m_pScriptNodeArray->Find(pNode) == -1) { 766 if (m_pScriptNodeArray->Find(pNode) == -1) {
767 m_pScriptNodeArray->Add(pNode); 767 m_pScriptNodeArray->Add(pNode);
768 } 768 }
769 } 769 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp ('k') | xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698