Applied patch [ 817734 ] fix for cvs head with wxUSE_STD_IOSTREAM=1

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2003-12-11 08:48:01 +00:00
parent 6da1ce6166
commit 6eaebb297a
2 changed files with 5 additions and 3 deletions

View File

@ -439,7 +439,7 @@ typedef void (wxEvtHandler::*wxTextUrlEventFunction)(wxTextUrlEvent&);
class WXDLLEXPORT wxStreamToTextRedirector
{
private:
void Init()
void Init(wxTextCtrl *text)
{
m_sbufOld = m_ostr.rdbuf();
m_ostr.rdbuf(text);
@ -449,13 +449,13 @@ public:
wxStreamToTextRedirector(wxTextCtrl *text)
: m_ostr(wxSTD cout)
{
Init();
Init(text);
}
wxStreamToTextRedirector(wxTextCtrl *text, wxSTD ostream *ostr)
: m_ostr(*ostr)
{
Init();
Init(text);
}
~wxStreamToTextRedirector()

View File

@ -100,6 +100,8 @@ extern const wxChar WXDLLIMPEXP_BASE *wxEmptyString = &g_strEmpty.dummy;
//
// ATTN: you can _not_ use both of these in the same program!
#include <iostream>
wxSTD istream& operator>>(wxSTD istream& is, wxString& WXUNUSED(str))
{
#if 0