git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45356
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !Alloc(len + n) || !CopyBeforeWrite() ) {
wxFAIL_MSG( _T("out of memory in wxStringImpl::append") );
if ( !Alloc(len + n) || !CopyBeforeWrite() ) {
wxFAIL_MSG( _T("out of memory in wxStringImpl::append") );
}
GetStringData()->nDataLength = len + n;
m_pchData[len + n] = '\0';
}
GetStringData()->nDataLength = len + n;
m_pchData[len + n] = '\0';
if ( !Alloc(length() + n) || !CopyBeforeWrite() ) {
wxFAIL_MSG( _T("out of memory in wxStringImpl::insert") );
if ( !Alloc(length() + n) || !CopyBeforeWrite() ) {
wxFAIL_MSG( _T("out of memory in wxStringImpl::insert") );
}
memmove(m_pchData + nPos + n, m_pchData + nPos,
}
memmove(m_pchData + nPos + n, m_pchData + nPos,