]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 817734 ] fix for cvs head with wxUSE_STD_IOSTREAM=1
authorJulian Smart <julian@anthemion.co.uk>
Thu, 11 Dec 2003 08:48:01 +0000 (08:48 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 11 Dec 2003 08:48:01 +0000 (08:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/textctrl.h
src/common/string.cpp

index 8efe4c913a6a99a536602ad82ca75d430042ebf2..fa7d7814fe27d805186a9c9a990566685cc9a951 100644 (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()
index aa461904f498b58daab618ee883fb97f27159fc8..9a0cff0e00abae665a9c6ea6617490ec3d615cfa 100644 (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