]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/txtstrm.cpp
fixed signed/unsigned comparison warning
[wxWidgets.git] / src / common / txtstrm.cpp
index 1894757f21cecb6385f56712ecc4bd9ddd6d3975..524402d54fb0e522b81549bfb1559e988b4806ca 100644 (file)
@@ -197,9 +197,6 @@ wxString wxTextInputStream::ReadLine()
         if(c == wxEOT)
             break;
 
-        if ( !m_input )
-            break;
-
         if (EatEOL(c))
             break;
 
@@ -419,7 +416,8 @@ void wxTextOutputStream::WriteString(const wxString& string)
     }
 
 #if wxUSE_UNICODE
-    wxCharBuffer buffer = m_conv->cWC2MB(out, out.length(), &len);
+    // FIXME-UTF8: use wxCharBufferWithLength if/when we have it
+    wxCharBuffer buffer = m_conv->cWC2MB(out.wc_str(), out.length(), &len);
     m_output.Write(buffer, len);
 #else
     m_output.Write(out.c_str(), out.length() );