From: Ryan Norton Date: Fri, 29 Oct 2004 05:52:16 +0000 (+0000) Subject: add some asserts for wxStringBufferLength X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/494b978fc18b48b4f16c4baf29a6645967aba30b add some asserts for wxStringBufferLength git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index a31f122bcc..309b27820a 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -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() {