remove unnecessary memcpy() of string contents to wxStringBufferLength

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-06-06 21:20:22 +00:00
parent 062dc5fc22
commit dac131af1d

View File

@ -648,10 +648,6 @@ const wxChar* wxURI::ParsePath(const wxChar* uri, bool bReference, bool bNormali
if (bNormalize)
{
wxStringBufferLength theBuffer(m_path, m_path.length() + 1);
#if wxUSE_STL || wxUSE_UNICODE_UTF8
// FIXME-UTF8: have some wxReadWriteStringBuffer instead?
wxTmemcpy(theBuffer, m_path.c_str(), m_path.length()+1);
#endif
Normalize(theBuffer, true);
theBuffer.SetLength(wxStrlen(theBuffer));
}