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

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

Issue 1846083002: Remove CFX_{Byte,Wide}String::Equal in favor of "==". (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. 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_object_imp.cpp ('k') | xfa/fxfa/parser/xfa_parser_imp.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 "core/fxcrt/include/fx_ext.h" 7 #include "core/fxcrt/include/fx_ext.h"
8 #include "xfa/fxbarcode/include/BC_Library.h" 8 #include "xfa/fxbarcode/include/BC_Library.h"
9 #include "xfa/fxfa/app/xfa_ffnotify.h" 9 #include "xfa/fxfa/app/xfa_ffnotify.h"
10 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" 10 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h"
(...skipping 2255 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 } 2266 }
2267 IFX_Locale* CXFA_WidgetData::GetLocal() { 2267 IFX_Locale* CXFA_WidgetData::GetLocal() {
2268 IFX_Locale* pLocale = NULL; 2268 IFX_Locale* pLocale = NULL;
2269 if (!m_pNode) { 2269 if (!m_pNode) {
2270 return pLocale; 2270 return pLocale;
2271 } 2271 }
2272 FX_BOOL bLocale = FALSE; 2272 FX_BOOL bLocale = FALSE;
2273 CFX_WideString wsLocaleName; 2273 CFX_WideString wsLocaleName;
2274 bLocale = m_pNode->GetLocaleName(wsLocaleName); 2274 bLocale = m_pNode->GetLocaleName(wsLocaleName);
2275 if (bLocale) { 2275 if (bLocale) {
2276 if (wsLocaleName.Equal(FX_WSTRC(L"ambient"))) { 2276 if (wsLocaleName == FX_WSTRC(L"ambient")) {
2277 pLocale = m_pNode->GetDocument()->GetLocalMgr()->GetDefLocale(); 2277 pLocale = m_pNode->GetDocument()->GetLocalMgr()->GetDefLocale();
2278 } else { 2278 } else {
2279 pLocale = 2279 pLocale =
2280 m_pNode->GetDocument()->GetLocalMgr()->GetLocaleByName(wsLocaleName); 2280 m_pNode->GetDocument()->GetLocalMgr()->GetLocaleByName(wsLocaleName);
2281 } 2281 }
2282 } 2282 }
2283 return pLocale; 2283 return pLocale;
2284 } 2284 }
2285 static FX_BOOL XFA_SplitDateTime(const CFX_WideString& wsDateTime, 2285 static FX_BOOL XFA_SplitDateTime(const CFX_WideString& wsDateTime,
2286 CFX_WideString& wsDate, 2286 CFX_WideString& wsDate,
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2648 XFA_ATTRIBUTE attributeValue = XFA_ATTRIBUTE_Type, 2648 XFA_ATTRIBUTE attributeValue = XFA_ATTRIBUTE_Type,
2649 XFA_ATTRIBUTEENUM eDefaultValue = XFA_ATTRIBUTEENUM_Optional) { 2649 XFA_ATTRIBUTEENUM eDefaultValue = XFA_ATTRIBUTEENUM_Optional) {
2650 XFA_ATTRIBUTEENUM eType = eDefaultValue; 2650 XFA_ATTRIBUTEENUM eType = eDefaultValue;
2651 if (pNode) { 2651 if (pNode) {
2652 if (!pNode->TryEnum(attributeValue, eType, TRUE)) { 2652 if (!pNode->TryEnum(attributeValue, eType, TRUE)) {
2653 eType = eDefaultValue; 2653 eType = eDefaultValue;
2654 } 2654 }
2655 } 2655 }
2656 return eType; 2656 return eType;
2657 } 2657 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_object_imp.cpp ('k') | xfa/fxfa/parser/xfa_parser_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698