| Index: core/fxcrt/include/fx_basic.h
|
| diff --git a/core/fxcrt/include/fx_basic.h b/core/fxcrt/include/fx_basic.h
|
| index 7437d9567ce70d16ca4c97b384d4785d10eea2ef..48999c4f19ca9ff1c2336dff94130913dd520dc5 100644
|
| --- a/core/fxcrt/include/fx_basic.h
|
| +++ b/core/fxcrt/include/fx_basic.h
|
| @@ -80,7 +80,15 @@ class CFX_WideTextBuf : public CFX_BinaryBuf {
|
| FX_WCHAR* GetBuffer() const {
|
| return reinterpret_cast<FX_WCHAR*>(m_pBuffer.get());
|
| }
|
| - CFX_WideStringC AsStringC() const;
|
| +
|
| + CFX_WideStringC AsStringC() const {
|
| + return CFX_WideStringC(reinterpret_cast<const FX_WCHAR*>(m_pBuffer.get()),
|
| + m_DataSize / sizeof(FX_WCHAR));
|
| + }
|
| + CFX_WideString MakeString() const {
|
| + return CFX_WideString(reinterpret_cast<const FX_WCHAR*>(m_pBuffer.get()),
|
| + m_DataSize / sizeof(FX_WCHAR));
|
| + }
|
|
|
| void Delete(int start_index, int count) {
|
| CFX_BinaryBuf::Delete(start_index * sizeof(FX_WCHAR),
|
|
|