fix for ugly code doing undefined things to wxF(F)ile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -165,9 +165,11 @@ size_t wxFileOutputStream::GetSize() const
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxFileStream
|
// wxFileStream
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
wxFileStream::wxFileStream(const wxString& fileName)
|
wxFileStream::wxFileStream(const wxString& fileName)
|
||||||
: wxFileInputStream(fileName), wxFileOutputStream(*wxFileInputStream::m_file)
|
: wxFileInputStream(fileName)
|
||||||
{
|
{
|
||||||
|
wxFileOutputStream::m_file = wxFileInputStream::m_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -308,10 +310,13 @@ size_t wxFFileOutputStream::GetSize() const
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxFFileStream
|
// wxFFileStream
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
wxFFileStream::wxFFileStream(const wxString& fileName)
|
wxFFileStream::wxFFileStream(const wxString& fileName)
|
||||||
: wxFFileInputStream(fileName), wxFFileOutputStream(*wxFFileInputStream::m_file)
|
: wxFFileInputStream(fileName)
|
||||||
{
|
{
|
||||||
|
wxFFileOutputStream::m_file = wxFFileInputStream::m_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// wxUSE_STREAMS && wxUSE_FILE
|
// wxUSE_STREAMS && wxUSE_FILE
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user