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

Side by Side Diff: xfa/fgas/font/fgas_stdfontmgr.cpp

Issue 1882043004: Remove implicit cast from CFX_WideString to (const wchar_t*) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: win error #2 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/font/fgas_gefont.cpp ('k') | xfa/fgas/localization/fgas_locale.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/fgas/font/fgas_stdfontmgr.h" 7 #include "xfa/fgas/font/fgas_stdfontmgr.h"
8 8
9 #include "core/fxcrt/include/fx_stream.h" 9 #include "core/fxcrt/include/fx_stream.h"
10 #include "xfa/fgas/crt/fgas_codepage.h" 10 #include "xfa/fgas/crt/fgas_codepage.h"
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 USB[0] = 0; 1497 USB[0] = 0;
1498 USB[1] = 0; 1498 USB[1] = 0;
1499 USB[2] = 0; 1499 USB[2] = 0;
1500 USB[3] = 0; 1500 USB[3] = 0;
1501 CSB[0] = 0; 1501 CSB[0] = 0;
1502 CSB[1] = 0; 1502 CSB[1] = 0;
1503 } 1503 }
1504 } 1504 }
1505 int32_t CFX_FontMgrImp::IsPartName(const CFX_WideString& Name1, 1505 int32_t CFX_FontMgrImp::IsPartName(const CFX_WideString& Name1,
1506 const CFX_WideString& Name2) { 1506 const CFX_WideString& Name2) {
1507 if (Name1.Find((const FX_WCHAR*)Name2) != -1) { 1507 if (Name1.Find(Name2.c_str()) != -1) {
1508 return 1; 1508 return 1;
1509 } 1509 }
1510 return 0; 1510 return 0;
1511 } 1511 }
1512 #endif 1512 #endif
OLDNEW
« no previous file with comments | « xfa/fgas/font/fgas_gefont.cpp ('k') | xfa/fgas/localization/fgas_locale.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698