]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textcmn.cpp
use of div_t.quot and div_t.rem were changed to / and %
[wxWidgets.git] / src / common / textcmn.cpp
index 33796a5371efc7ea745a8113f01e5f13021a99bc..d45fbb75057acaa8b29ec98c4378234a1fc404e1 100644 (file)
@@ -21,6 +21,8 @@
 #endif
 
 #ifndef WX_PRECOMP
+    #include "wx/intl.h"
+    #include "wx/log.h"
     #include "wx/textctrl.h"
 #endif // WX_PRECOMP
 
 
 wxTextCtrlBase::wxTextCtrlBase()
 {
+#ifndef NO_TEXT_WINDOW_STREAM
+    if (allocate())
+        setp(base(),ebuf());
+#endif // NO_TEXT_WINDOW_STREAM
 }
 
 // ----------------------------------------------------------------------------
@@ -142,7 +148,7 @@ wxTextCtrl& wxTextCtrlBase::operator<<(long i)
     return *TEXTCTRL(this);
 }
 
-wxTextCtrl& wxTextCtrlBase::operator<<(const char c)
+wxTextCtrl& wxTextCtrlBase::operator<<(const wxChar c)
 {
     return operator<<(wxString(c));
 }