X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/345fec0d578c3033b82d799fbfd0c647b2229e30..c7db82dced50cce6ac8440a442a8fd3f6e25c2ab:/src/common/wfstream.cpp diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index c912b92eaf..65e8ceb266 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -109,7 +109,7 @@ wxFileOffset wxFileInputStream::OnSysTell() const bool wxFileInputStream::IsOk() const { - return wxStreamBase::IsOk() && m_file->IsOpened(); + return wxInputStream::IsOk() && m_file->IsOpened(); } // ---------------------------------------------------------------------------- @@ -185,7 +185,7 @@ wxFileOffset wxFileOutputStream::GetLength() const bool wxFileOutputStream::IsOk() const { - return wxStreamBase::IsOk() && m_file->IsOpened(); + return wxOutputStream::IsOk() && m_file->IsOpened(); } // ---------------------------------------------------------------------------- @@ -227,10 +227,10 @@ wxFileStream::wxFileStream(const wxString& fileName) bool wxFileStream::IsOk() const { - return wxFileOutputStream::IsOk() && wxFileInputStream::m_file->IsOpened(); + return wxFileOutputStream::IsOk() && wxFileInputStream::IsOk(); } -#endif //wxUSE_FILE +#endif // wxUSE_FILE #if wxUSE_FFILE @@ -406,6 +406,11 @@ wxFFileStream::wxFFileStream(const wxString& fileName) wxFFileOutputStream::m_file = wxFFileInputStream::m_file; } +bool wxFFileStream::IsOk() const +{ + return wxFFileOutputStream::IsOk() && wxFFileInputStream::IsOk(); +} + #endif //wxUSE_FFILE #endif // wxUSE_STREAMS