diff options
author | tsepez <tsepez@chromium.org> | 2016-04-08 12:13:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-08 12:13:50 -0700 |
commit | f172290a8dc527cd8bc73b0d0ad59e78797968c1 (patch) | |
tree | 7e04b3e6d025ba1d2683da1ae668b0505d9cfe98 /core/fxcrt/fx_basic_bstring.cpp | |
parent | 8b36e5cc3d5f5f579c6b060e2c40b896a4b02bc0 (diff) | |
download | pdfium-f172290a8dc527cd8bc73b0d0ad59e78797968c1.tar.xz |
Remove CFX_ByteString::Load() and operator= for CFX_ByteTextBuf
The few places these are called are better served by explicit
calls to CFX_ByteString() itself. This helps make Byte and
Wide strings more similar.
Also prevents fx_string.h from having any knowledge of fx_basic.h's
ByteTextBuf class.
Review URL: https://codereview.chromium.org/1870043003
Diffstat (limited to 'core/fxcrt/fx_basic_bstring.cpp')
-rw-r--r-- | core/fxcrt/fx_basic_bstring.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/core/fxcrt/fx_basic_bstring.cpp b/core/fxcrt/fx_basic_bstring.cpp index cc0dfe2341..34abe1e067 100644 --- a/core/fxcrt/fx_basic_bstring.cpp +++ b/core/fxcrt/fx_basic_bstring.cpp @@ -141,20 +141,6 @@ const CFX_ByteString& CFX_ByteString::operator=( return *this; } -const CFX_ByteString& CFX_ByteString::operator=(const CFX_BinaryBuf& buf) { - Load(buf.GetBuffer(), buf.GetSize()); - return *this; -} - -void CFX_ByteString::Load(const uint8_t* buf, FX_STRSIZE len) { - if (!len) { - clear(); - return; - } - - m_pData.Reset(StringData::Create(reinterpret_cast<const FX_CHAR*>(buf), len)); -} - const CFX_ByteString& CFX_ByteString::operator+=(const FX_CHAR* pStr) { if (pStr) Concat(pStr, FXSYS_strlen(pStr)); |