]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/txtstrm.cpp
fixed rounding errors in variable status bar panes widths computation (patch 1030021)
[wxWidgets.git] / src / common / txtstrm.cpp
index 36fab028f4c0194b764bb89ecb99c21fb6966878..0290751e3c72b4880719510db6537e396771bffb 100644 (file)
@@ -97,10 +97,9 @@ wxChar wxTextInputStream::NextChar()
 
 wxChar wxTextInputStream::NextNonSeparators()
 {
-    wxChar c = (wxChar) 0;
     for (;;)
     {
-        c = NextChar();
+        wxChar c = NextChar();
         if (c == wxEOT) return (wxChar) 0;
 
         if (c != wxT('\n') &&
@@ -426,6 +425,17 @@ wxTextOutputStream& wxTextOutputStream::operator<<(char c)
     return *this;
 }
 
+#if wxUSE_UNICODE && wxWCHAR_T_IS_REAL_TYPE
+
+wxTextOutputStream& wxTextOutputStream::operator<<(wchar_t wc)
+{
+    WriteString( wxString(&wc, m_conv, 1) );
+
+    return *this;
+}
+
+#endif // wxUSE_UNICODE
+
 wxTextOutputStream& wxTextOutputStream::operator<<(wxInt16 c)
 {
     wxString str;