]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textctrl.h
Add wxBitmap::GetNSImage() which creates an autoreleased NSImage either
[wxWidgets.git] / include / wx / textctrl.h
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()