* Changed char to wxChar in operators.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1999-07-13 06:27:42 +00:00
parent b1830dfaba
commit 940ddb190c
2 changed files with 11 additions and 8 deletions

View File

@@ -189,9 +189,12 @@ wxTextInputStream& wxTextInputStream::operator>>(wxString& line)
return *this;
}
wxTextInputStream& wxTextInputStream::operator>>(char& c)
wxTextInputStream& wxTextInputStream::operator>>(wxChar& c)
{
m_input->Read(&c, 1);
// TODO
/*
m_input->Read(&c, sizeof(wxChar));
*/
return *this;
}
@@ -294,9 +297,11 @@ wxTextOutputStream& wxTextOutputStream::operator<<(const wxString& string)
return *this;
}
wxTextOutputStream& wxTextOutputStream::operator<<(char c)
wxTextOutputStream& wxTextOutputStream::operator<<(wxChar c)
{
m_output->Write(&c, 1);
wxString tmp_str;
tmp_str.Printf("%c", c);
WriteString(tmp_str);
return *this;
}