From b1830dfaba2360646c4ddea51855058e8173d838 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Mon, 12 Jul 1999 17:17:43 +0000 Subject: [PATCH] * Changed behaviour of wxTextStreams::operator(wxUint8/wxInt8). Now it writes characters instead of numbers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/txtstrm.cpp | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 9617ae5e21..4a0695da03 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -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); -- 2.47.2