Index: core/fxcrt/fx_basic_buffer.cpp |
diff --git a/core/fxcrt/fx_basic_buffer.cpp b/core/fxcrt/fx_basic_buffer.cpp |
index 1e5d0554d1ded8ecbb63f590902ca7638f67a76e..338edc16c9efa4738a477284d4583e067b944d92 100644 |
--- a/core/fxcrt/fx_basic_buffer.cpp |
+++ b/core/fxcrt/fx_basic_buffer.cpp |
@@ -100,7 +100,7 @@ void CFX_BinaryBuf::InsertBlock(FX_STRSIZE pos, |
m_DataSize += size; |
} |
-CFX_ByteStringC CFX_ByteTextBuf::GetByteString() const { |
+CFX_ByteStringC CFX_ByteTextBuf::AsStringC() const { |
return CFX_ByteStringC(m_pBuffer.get(), m_DataSize); |
} |
@@ -186,8 +186,8 @@ CFX_WideTextBuf& CFX_WideTextBuf::operator<<(const CFX_WideTextBuf& buf) { |
return *this; |
} |
-CFX_WideStringC CFX_WideTextBuf::GetWideString() const { |
- return CFX_WideStringC((const FX_WCHAR*)m_pBuffer.get(), |
+CFX_WideStringC CFX_WideTextBuf::AsStringC() const { |
+ return CFX_WideStringC(reinterpret_cast<const FX_WCHAR*>(m_pBuffer.get()), |
m_DataSize / sizeof(FX_WCHAR)); |
} |