From 7e325fb635e9a9cf7c3cba090a0a337a7041adbc Mon Sep 17 00:00:00 2001 From: Bryan Petty Date: Sat, 8 Dec 2007 09:59:04 +0000 Subject: [PATCH] Fixed std::cout redirection code example. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/text.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/latex/wx/text.tex b/docs/latex/wx/text.tex index 9f2d342360..083659f1b6 100644 --- a/docs/latex/wx/text.tex +++ b/docs/latex/wx/text.tex @@ -173,7 +173,7 @@ control. This could be done in the following way: wxTextCtrl *control = new wxTextCtrl(...); std::streambuf *sbOld = std::cout.rdbuf(); - std::cout.rdbuf(*control); + std::cout.rdbuf(control); // use cout as usual, the output appears in the text control ... -- 2.50.0