diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-20 07:32:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-20 07:32:39 -0700 |
commit | 685bb88433b7520946e30a1e520d37bfc2288151 (patch) | |
tree | fbcb1fdc49cdc27d5bf064915513717cb8e11f14 /core/fxcrt | |
parent | f5a1ee807d74b28917d5c2377c4ece611883bcd1 (diff) | |
download | pdfium-685bb88433b7520946e30a1e520d37bfc2288151.tar.xz |
Standalone GN build.
This CL setups up a standalone GN build. You'll need to set gn args similar to:
use_goma = true
clang_use_chrome_plugins = false
pdf_enable_xfa = true
pdf_enable_v8 = true
pdf_is_standalone = true
The third_party/pymock files are needed to make git cl upload work correctly.
BUG=pdfium:106
Review URL: https://codereview.chromium.org/1904563002
Diffstat (limited to 'core/fxcrt')
-rw-r--r-- | core/fxcrt/fx_basic_wstring.cpp | 4 | ||||
-rw-r--r-- | core/fxcrt/include/fx_string.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/core/fxcrt/fx_basic_wstring.cpp b/core/fxcrt/fx_basic_wstring.cpp index 069b9fa42d..1e8f1f3232 100644 --- a/core/fxcrt/fx_basic_wstring.cpp +++ b/core/fxcrt/fx_basic_wstring.cpp @@ -579,6 +579,10 @@ void CFX_WideString::FormatV(const FX_WCHAR* pFormat, va_list argList) { va_end(argListSave); } +const FX_WCHAR* CFX_WideString::c_str() const { + return m_pData ? m_pData->m_String : L""; +} + void CFX_WideString::Format(const FX_WCHAR* pFormat, ...) { va_list argList; va_start(argList, pFormat); diff --git a/core/fxcrt/include/fx_string.h b/core/fxcrt/include/fx_string.h index 10a70d9334..8041522472 100644 --- a/core/fxcrt/include/fx_string.h +++ b/core/fxcrt/include/fx_string.h @@ -496,7 +496,7 @@ class CFX_WideString { // Explicit conversion to C-style wide string. // Note: Any subsequent modification of |this| will invalidate the result. - const FX_WCHAR* c_str() const { return m_pData ? m_pData->m_String : L""; } + const FX_WCHAR* c_str() const; // Explicit conversion to CFX_WideStringC. // Note: Any subsequent modification of |this| will invalidate the result. |