add some asserts for wxStringBufferLength

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-10-29 05:52:16 +00:00
parent 72606b430e
commit 494b978fc1

View File

@@ -1380,7 +1380,10 @@ class WXDLLIMPEXP_BASE wxStringBufferLength
public:
wxStringBufferLength(wxString& str, size_t lenWanted = 1024)
: m_str(str), m_buf(NULL), m_len(0), m_lenSet(false)
{ m_buf = m_str.GetWriteBuf(lenWanted); }
{
m_buf = m_str.GetWriteBuf(lenWanted);
wxASSERT(m_buf != NULL);
}
~wxStringBufferLength()
{