summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a8098f8)
wxFileInput/OutputStream to call the immediate base class version of this
method and not wxStreamBase one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47284
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
wxFileOffset GetLength() const;
bool Ok() const { return IsOk(); }
- virtual bool IsOk() const ;
+ virtual bool IsOk() const;
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
protected:
{
public:
wxFFileStream(const wxString& fileName);
{
public:
wxFFileStream(const wxString& fileName);
+ virtual bool IsOk() const;
private:
DECLARE_NO_COPY_CLASS(wxFFileStream)
private:
DECLARE_NO_COPY_CLASS(wxFFileStream)
bool wxFileInputStream::IsOk() const
{
bool wxFileInputStream::IsOk() const
{
- return wxStreamBase::IsOk() && m_file->IsOpened();
+ return wxInputStream::IsOk() && m_file->IsOpened();
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
bool wxFileOutputStream::IsOk() const
{
bool wxFileOutputStream::IsOk() const
{
- return wxStreamBase::IsOk() && m_file->IsOpened();
+ return wxOutputStream::IsOk() && m_file->IsOpened();
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
bool wxFileStream::IsOk() const
{
bool wxFileStream::IsOk() const
{
- return wxFileOutputStream::IsOk() && wxFileInputStream::m_file->IsOpened();
+ return wxFileOutputStream::IsOk() && wxFileInputStream::IsOk();
wxFFileOutputStream::m_file = wxFFileInputStream::m_file;
}
wxFFileOutputStream::m_file = wxFFileInputStream::m_file;
}
+bool wxFFileStream::IsOk() const
+{
+ return wxFFileOutputStream::IsOk() && wxFFileInputStream::IsOk();
+}
+
#endif //wxUSE_FFILE
#endif // wxUSE_STREAMS
#endif //wxUSE_FFILE
#endif // wxUSE_STREAMS