moved Write(const wxString&) to .cpp files as they're going to be changed again soon; removed unnecessary casts

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-24 14:42:29 +00:00
parent bd3f83f763
commit b1c673942d
4 changed files with 23 additions and 25 deletions

View File

@@ -62,17 +62,7 @@ public:
// returns the number of bytes written
size_t Write(const void *pBuf, size_t nCount);
// returns true on success
bool Write(const wxString& s, const wxMBConv& conv = wxConvAuto())
{
const wxWX2MBbuf buf = s.mb_str(conv);
if (buf)
{
size_t size = strlen(buf);
return Write((const char *)buf, size) == size;
}
else
return false;
}
bool Write(const wxString& s, const wxMBConv& conv = wxConvAuto());
// flush data not yet written
bool Flush();