fixes to ZIP/archive patch (patch 1064426); should fix the docs build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -146,7 +146,7 @@ public:
|
||||
void Close() { m_pos = 0; m_lasterror = wxSTREAM_NO_ERROR; }
|
||||
|
||||
virtual char Peek() { return wxInputStream::Peek(); }
|
||||
virtual size_t GetSize() const { return m_len; }
|
||||
virtual wxFileOffset GetLength() const { return m_len; }
|
||||
|
||||
protected:
|
||||
virtual size_t OnSysRead(void *buffer, size_t size);
|
||||
@@ -1751,7 +1751,7 @@ wxFileOffset wxZipInputStream::OnSysSeek(wxFileOffset seek, wxSeekMode mode)
|
||||
{
|
||||
case wxFromCurrent : nextpos = seek + pos; break;
|
||||
case wxFromStart : nextpos = seek; break;
|
||||
case wxFromEnd : nextpos = GetSize() - 1 + seek; break;
|
||||
case wxFromEnd : nextpos = GetLength() - 1 + seek; break;
|
||||
default : nextpos = pos; break; /* just to fool compiler, never happens */
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user