really ensure that the pointer returned from MyConnection::OnRequest() remains valid

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-11-17 11:00:32 +00:00
parent 48c90c6e1e
commit e536b75069
2 changed files with 12 additions and 8 deletions

View File

@@ -78,9 +78,9 @@ public:
wxString m_advise;
protected:
// the data returned by last OnRequest(): we keep it in this wxString to
// the data returned by last OnRequest(): we keep it in this buffer to
// ensure that the pointer we return from OnRequest() stays valid
wxString m_requestData;
wxCharBuffer m_requestData;
};
class MyServer : public wxServer