diff --git a/interface/wx/textctrl.h b/interface/wx/textctrl.h index e72d531484..3f68fa92f3 100644 --- a/interface/wx/textctrl.h +++ b/interface/wx/textctrl.h @@ -1568,21 +1568,17 @@ public: @code using namespace std; - - wxTextCtrl *text = new wxTextCtrl(...); - - { + wxTextCtrl* text = new wxTextCtrl(...); + { wxStreamToTextRedirector redirect(text); // this goes to the text control - cout "Hello, text!" endl; - } - - // this goes somewhere else, presumably to stdout - cout "Hello, console!" endl; + cout << "Hello, text!" << endl; + } + // this goes somewhere else, presumably to stdout + cout << "Hello, console!" << endl; @endcode - @library{wxcore} @category{logging}