Use wxStringBuffer[Length] instead of explicit calls to
wxString::get/UngetWriteBuffer. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user