]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/text.tex
don't call wxString::Len() from operator==; use IsSameAs() instead of move the length...
[wxWidgets.git] / docs / latex / wx / text.tex
index 9f2d3423607a65b4cc9d2a462654442844877c8e..083659f1b6ce9a045ce15ae71dc5a79edbc59331 100644 (file)
@@ -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
   ...