X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc437b9654244bfb8b638f98252aa34145323b9c..d642db66a5efc82d374b813022c72ba88bc50839:/include/wx/stream.h diff --git a/include/wx/stream.h b/include/wx/stream.h index 7f57e1f39c..b1746b84b5 100644 --- a/include/wx/stream.h +++ b/include/wx/stream.h @@ -281,16 +281,17 @@ class WXDLLIMPEXP_BASE wxCountingOutputStream : public wxOutputStream public: wxCountingOutputStream(); - wxFileOffset GetLength() const; + virtual wxFileOffset GetLength() const; bool Ok() const { return IsOk(); } - bool IsOk() const { return true; } + virtual bool IsOk() const { return true; } protected: virtual size_t OnSysWrite(const void *buffer, size_t size); virtual wxFileOffset OnSysSeek(wxFileOffset pos, wxSeekMode mode); virtual wxFileOffset OnSysTell() const; - size_t m_currentPos; + size_t m_currentPos, + m_lastPos; DECLARE_DYNAMIC_CLASS(wxCountingOutputStream) wxDECLARE_NO_COPY_CLASS(wxCountingOutputStream);