X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7cacb43db1e69b87b257a67912b4d52995b070a..bc07ab17bf5370f452e899128bf89cc7ca7b98f0:/include/wx/wfstream.h?ds=inline diff --git a/include/wx/wfstream.h b/include/wx/wfstream.h index 79feb44fe4..63c90a0961 100644 --- a/include/wx/wfstream.h +++ b/include/wx/wfstream.h @@ -39,7 +39,7 @@ public: wxFileOffset GetLength() const; bool Ok() const { return IsOk(); } - bool IsOk() const { return m_file->IsOpened(); } + virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); } bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; } protected: @@ -69,7 +69,7 @@ public: wxFileOffset GetLength() const; bool Ok() const { return IsOk(); } - bool IsOk() const { return m_file->IsOpened(); } + virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); } bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; } protected: @@ -140,7 +140,7 @@ public: wxFileOffset GetLength() const; bool Ok() const { return IsOk(); } - bool IsOk() const { return m_file->IsOpened(); } + virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); } bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; } protected: @@ -170,7 +170,7 @@ public: wxFileOffset GetLength() const; bool Ok() const { return IsOk(); } - bool IsOk() const { return m_file->IsOpened(); } + virtual bool IsOk() const { return (wxStreamBase::IsOk() && m_file->IsOpened()); } bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; } protected: