]> git.saurik.com Git - wxWidgets.git/commitdiff
undo revision 48162 as it broke unit tests
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 Sep 2007 00:03:47 +0000 (00:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 15 Sep 2007 00:03:47 +0000 (00:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/txtstrm.cpp

index 010fe739f644263c97a91860e9882bd59c6e2c86..43deb545d3d419d5daf69951d3c58b8b145e9194 100644 (file)
@@ -77,9 +77,6 @@ wxChar wxTextInputStream::NextChar()
     memset((void*)m_lastBytes, 0, 10);
     for(size_t inlen = 0; inlen < 9; inlen++)
     {
-        if (!m_input.CanRead())
-            return wxEOT;
-
         // actually read the next character
         m_lastBytes[inlen] = m_input.GetC();
 
@@ -93,9 +90,6 @@ wxChar wxTextInputStream::NextChar()
     // there should be no encoding which requires more than nine bytes for one character...
     return wxEOT;
 #else
-    if (!m_input.CanRead())
-        return wxEOT;
-
     m_lastBytes[0] = m_input.GetC();
 
     if(m_input.LastRead() <= 0)