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

Side by Side Diff: core/fxcrt/fx_basic_gcc.cpp

Issue 1885973002: Remove implicit cast from CFX_ByteString to (const char*). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Typo 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 | « core/fxcrt/fx_basic_bstring.cpp ('k') | core/fxcrt/fx_basic_util.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 <cctype> 7 #include <cctype>
8 #include <cwctype> 8 #include <cwctype>
9 #include <limits> 9 #include <limits>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 #ifdef __cplusplus 127 #ifdef __cplusplus
128 } 128 }
129 #endif 129 #endif
130 #endif 130 #endif
131 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 131 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
132 #ifdef __cplusplus 132 #ifdef __cplusplus
133 extern "C" { 133 extern "C" {
134 #endif 134 #endif
135 FXSYS_FILE* FXSYS_wfopen(const FX_WCHAR* filename, const FX_WCHAR* mode) { 135 FXSYS_FILE* FXSYS_wfopen(const FX_WCHAR* filename, const FX_WCHAR* mode) {
136 return FXSYS_fopen(CFX_ByteString::FromUnicode(filename), 136 return FXSYS_fopen(CFX_ByteString::FromUnicode(filename).c_str(),
137 CFX_ByteString::FromUnicode(mode)); 137 CFX_ByteString::FromUnicode(mode).c_str());
138 } 138 }
139 char* FXSYS_strlwr(char* str) { 139 char* FXSYS_strlwr(char* str) {
140 if (!str) { 140 if (!str) {
141 return NULL; 141 return NULL;
142 } 142 }
143 char* s = str; 143 char* s = str;
144 while (*str) { 144 while (*str) {
145 *str = FXSYS_tolower(*str); 145 *str = FXSYS_tolower(*str);
146 str++; 146 str++;
147 } 147 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 buf[wlen] = bstr[i]; 246 buf[wlen] = bstr[i];
247 } 247 }
248 wlen++; 248 wlen++;
249 } 249 }
250 return wlen; 250 return wlen;
251 } 251 }
252 #ifdef __cplusplus 252 #ifdef __cplusplus
253 } 253 }
254 #endif 254 #endif
255 #endif 255 #endif
OLDNEW
« no previous file with comments | « core/fxcrt/fx_basic_bstring.cpp ('k') | core/fxcrt/fx_basic_util.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698