]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/regex.cpp
split wxBase into wxBase and wxNet libraries
[wxWidgets.git] / src / common / regex.cpp
index 62ffa7c7816b51818e749aa6f19f622d7632e528..e39cde96bf6880332cf171fd57288fb5f327e387 100644 (file)
@@ -148,9 +148,7 @@ wxString wxRegExImpl::GetErrorMsg(int errorcode) const
 
         msg = wxString(buf.data(), wxConvLibc);
 #else // !Unicode
-        (void)regerror(errorcode, &m_RegEx, msg.GetWriteBuf(len), len);
-
-        msg.UngetWriteBuf();
+        (void)regerror(errorcode, &m_RegEx, wxStringBuffer(msg, len), len);
 #endif // Unicode/!Unicode
     }
     else // regerror() returned 0