]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/txtstrm.cpp
* Changed behaviour of wxTextStreams::operator(wxUint8/wxInt8). Now it writes
[wxWidgets.git] / src / common / txtstrm.cpp
index 9617ae5e215e7f6dcce66d07de7154710eace511..4a0695da0329dc710310b150ba8210eea954ead6 100644 (file)
@@ -189,9 +189,9 @@ wxTextInputStream& wxTextInputStream::operator>>(wxString& line)
   return *this;
 }
 
-wxTextInputStream& wxTextInputStream::operator>>(wxInt8& c)
+wxTextInputStream& wxTextInputStream::operator>>(char& c)
 {
-  c = (wxInt8)Read8();
+  m_input->Read(&c, 1);
   return *this;
 }
 
@@ -207,12 +207,6 @@ wxTextInputStream& wxTextInputStream::operator>>(wxInt32& i)
   return *this;
 }
 
-wxTextInputStream& wxTextInputStream::operator>>(wxUint8& c)
-{
-  c = Read8();
-  return *this;
-}
-
 wxTextInputStream& wxTextInputStream::operator>>(wxUint16& i)
 {
   i = Read16();
@@ -300,9 +294,9 @@ wxTextOutputStream& wxTextOutputStream::operator<<(const wxString& string)
   return *this;
 }
 
-wxTextOutputStream& wxTextOutputStream::operator<<(wxInt8 c)
+wxTextOutputStream& wxTextOutputStream::operator<<(char c)
 {
-  Write8((wxUint8)c);
+  m_output->Write(&c, 1);
   return *this;
 }
 
@@ -318,12 +312,6 @@ wxTextOutputStream& wxTextOutputStream::operator<<(wxInt32 c)
   return *this;
 }
 
-wxTextOutputStream& wxTextOutputStream::operator<<(wxUint8 c)
-{
-  Write8(c);
-  return *this;
-}
-
 wxTextOutputStream& wxTextOutputStream::operator<<(wxUint16 c)
 {
   Write16(c);