X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1b82138efe9aacda4e0ad7ce4b1551d624524c4..9c8849722a71ee7139e035bca5fdb2ae7b0af570:/src/common/textcmn.cpp diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index 33796a5371..63408d24d4 100644 --- a/src/common/textcmn.cpp +++ b/src/common/textcmn.cpp @@ -12,7 +12,10 @@ // ============================================================================ // declarations // ============================================================================ - +#ifdef __GNUG__ + #pragma implementation "textctrlbase.h" +#endif + // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -21,6 +24,8 @@ #endif #ifndef WX_PRECOMP + #include "wx/intl.h" + #include "wx/log.h" #include "wx/textctrl.h" #endif // WX_PRECOMP @@ -44,6 +49,10 @@ wxTextCtrlBase::wxTextCtrlBase() { +#ifndef NO_TEXT_WINDOW_STREAM + if (allocate()) + setp(base(),ebuf()); +#endif // NO_TEXT_WINDOW_STREAM } // ---------------------------------------------------------------------------- @@ -142,7 +151,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)); }