| Index: core/fxcrt/fx_basic_bstring.cpp
|
| diff --git a/core/fxcrt/fx_basic_bstring.cpp b/core/fxcrt/fx_basic_bstring.cpp
|
| index 379f1ee882ca2673de6da276548194dbcb7b3a0e..d0ba1af5ba7bb7614f5ad0d2f034aa04e67c211f 100644
|
| --- a/core/fxcrt/fx_basic_bstring.cpp
|
| +++ b/core/fxcrt/fx_basic_bstring.cpp
|
| @@ -94,11 +94,23 @@ CFX_ByteString::CFX_ByteString(const uint8_t* pStr, FX_STRSIZE nLen) {
|
| }
|
| }
|
|
|
| +CFX_ByteString::CFX_ByteString() {}
|
| +
|
| +CFX_ByteString::CFX_ByteString(const CFX_ByteString& other)
|
| + : m_pData(other.m_pData) {}
|
| +
|
| +CFX_ByteString::CFX_ByteString(CFX_ByteString&& other) {
|
| + m_pData.Swap(other.m_pData);
|
| +}
|
| +
|
| CFX_ByteString::CFX_ByteString(char ch) {
|
| m_pData.Reset(StringData::Create(1));
|
| m_pData->m_String[0] = ch;
|
| }
|
|
|
| +CFX_ByteString::CFX_ByteString(const FX_CHAR* ptr)
|
| + : CFX_ByteString(ptr, ptr ? FXSYS_strlen(ptr) : 0) {}
|
| +
|
| CFX_ByteString::CFX_ByteString(const CFX_ByteStringC& stringSrc) {
|
| if (!stringSrc.IsEmpty())
|
| m_pData.Reset(StringData::Create(stringSrc.c_str(), stringSrc.GetLength()));
|
|
|