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

Unified Diff: core/fpdfapi/fpdf_font/fpdf_font.cpp

Issue 1857713003: Rename GetCStr and GetPtr to match CFX_ByteString (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp » ('j') | core/fxcrt/include/fx_string.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_font/fpdf_font.cpp
diff --git a/core/fpdfapi/fpdf_font/fpdf_font.cpp b/core/fpdfapi/fpdf_font/fpdf_font.cpp
index ce2390ec083f37c28435487f5b0a97cc20473e1c..21c398a63001c4f75fc3b6a7856f49762af62623 100644
--- a/core/fpdfapi/fpdf_font/fpdf_font.cpp
+++ b/core/fpdfapi/fpdf_font/fpdf_font.cpp
@@ -131,7 +131,7 @@ uint32_t CPDF_ToUnicodeMap::ReverseLookup(FX_WCHAR unicode) {
// Static.
uint32_t CPDF_ToUnicodeMap::StringToCode(const CFX_ByteStringC& str) {
- const FX_CHAR* buf = str.GetCStr();
+ const FX_CHAR* buf = str.c_str();
int len = str.GetLength();
if (len == 0)
return 0;
@@ -171,7 +171,7 @@ static CFX_WideString StringDataAdd(CFX_WideString str) {
// Static.
CFX_WideString CPDF_ToUnicodeMap::StringToWideString(
const CFX_ByteStringC& str) {
- const FX_CHAR* buf = str.GetCStr();
+ const FX_CHAR* buf = str.c_str();
int len = str.GetLength();
if (len == 0)
return CFX_WideString();
« no previous file with comments | « no previous file | core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp » ('j') | core/fxcrt/include/fx_string.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698