diff options
author | tsepez <tsepez@chromium.org> | 2016-04-06 06:27:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-06 06:27:29 -0700 |
commit | 660956f58af305d72c64bb87c05f694469846df2 (patch) | |
tree | 5a73d1df3512213bcecb28114f9d51cec86fca0d /core/fxcrt/fxcrt_windows.cpp | |
parent | 54750b570d32898c8ebd4fa59105bfd3b96043af (diff) | |
download | pdfium-660956f58af305d72c64bb87c05f694469846df2.tar.xz |
Rename CFX_WideStringC::raw_str() to c_str()
No functional change intended.
This difference in naming is standing in the way of consolidating
some of the string code between Wide and Byte strings. The Wide
code wants to call raw_str() in exactly the same spots that the
Byte code calls c_str(). This makes sense, because in both places we
get a character type back, and not a uint*_t type. If WideStringC
had a raw_str() method, it would have to return uint32_t or similar.
R=dsinclair@chromium.org
Review URL: https://codereview.chromium.org/1863593004
Diffstat (limited to 'core/fxcrt/fxcrt_windows.cpp')
-rw-r--r-- | core/fxcrt/fxcrt_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/fxcrt_windows.cpp b/core/fxcrt/fxcrt_windows.cpp index 8c7c0d8176..eb584ca804 100644 --- a/core/fxcrt/fxcrt_windows.cpp +++ b/core/fxcrt/fxcrt_windows.cpp @@ -61,7 +61,7 @@ FX_BOOL CFXCRT_FileAccess_Win64::Open(const CFX_WideStringC& fileName, } uint32_t dwAccess, dwShare, dwCreation; FXCRT_Windows_GetFileMode(dwMode, dwAccess, dwShare, dwCreation); - m_hFile = ::CreateFileW((LPCWSTR)fileName.raw_str(), dwAccess, dwShare, NULL, + m_hFile = ::CreateFileW((LPCWSTR)fileName.c_str(), dwAccess, dwShare, NULL, dwCreation, FILE_ATTRIBUTE_NORMAL, NULL); if (m_hFile == INVALID_HANDLE_VALUE) { m_hFile = NULL; |