Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
index 7559bcee919c8cfe4699a75e3d9d98ea167f9e65..e5e68c2f5c37fb32dfbc3a4dd3be96aefc658b52 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp |
@@ -284,14 +284,14 @@ CFX_ByteString PDF_NameDecode(FX_BSTR bstr) |
} |
CFX_ByteString PDF_NameDecode(const CFX_ByteString& orig) |
{ |
- if (FXSYS_memchr((FX_LPCSTR)orig, '#', orig.GetLength()) == NULL) { |
+ if (FXSYS_memchr(orig.c_str(), '#', orig.GetLength()) == NULL) { |
return orig; |
} |
return PDF_NameDecode(CFX_ByteStringC(orig)); |
} |
CFX_ByteString PDF_NameEncode(const CFX_ByteString& orig) |
{ |
- FX_LPBYTE src_buf = (FX_LPBYTE)(FX_LPCSTR)orig; |
+ FX_LPBYTE src_buf = (FX_LPBYTE)orig.c_str(); |
int src_len = orig.GetLength(); |
int dest_len = 0; |
int i; |