wxstringbufferlen stl fixup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -590,6 +590,9 @@ const wxChar* wxURI::ParsePath(const wxChar* uri, bool bReference, bool bNormali
|
|||||||
if (bNormalize)
|
if (bNormalize)
|
||||||
{
|
{
|
||||||
wxStringBufferLength theBuffer(m_path, m_path.length() + 1);
|
wxStringBufferLength theBuffer(m_path, m_path.length() + 1);
|
||||||
|
#if wxUSE_STL
|
||||||
|
wxMemcpy(theBuffer, m_path.c_str(), m_path.length()+1);
|
||||||
|
#endif
|
||||||
Normalize(theBuffer, true);
|
Normalize(theBuffer, true);
|
||||||
theBuffer.SetLength(wxStrlen(theBuffer));
|
theBuffer.SetLength(wxStrlen(theBuffer));
|
||||||
}
|
}
|
||||||
@@ -627,6 +630,9 @@ const wxChar* wxURI::ParsePath(const wxChar* uri, bool bReference, bool bNormali
|
|||||||
if (bNormalize)
|
if (bNormalize)
|
||||||
{
|
{
|
||||||
wxStringBufferLength theBuffer(m_path, m_path.length() + 1);
|
wxStringBufferLength theBuffer(m_path, m_path.length() + 1);
|
||||||
|
#if wxUSE_STL
|
||||||
|
wxMemcpy(theBuffer, m_path.c_str(), m_path.length()+1);
|
||||||
|
#endif
|
||||||
Normalize(theBuffer);
|
Normalize(theBuffer);
|
||||||
theBuffer.SetLength(wxStrlen(theBuffer));
|
theBuffer.SetLength(wxStrlen(theBuffer));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user