]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
switching to defines not having a value for __WXMAC__
[wxWidgets.git] / include / wx / string.h
index a31f122bcc89ee080361b6d237861bd0e57ccfa3..309b27820ad368b219ae366e69d16aa2e20ba3b4 100644 (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()
     {