]> git.saurik.com Git - wxWidgets.git/commit - include/wx/stream.h
Fix return value of wxCountingOutputStream::LastWrite().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 May 2013 13:15:26 +0000 (13:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 May 2013 13:15:26 +0000 (13:15 +0000)
commit9bc3af3e642709425476f6232a19fe4f1bbb42b8
tree30c5516d0752121e2b2718ec4aff7ca7740c52a4
parent0f5378d414cb68caaa535199c1af12dec1720c3d
Fix return value of wxCountingOutputStream::LastWrite().

Don't reuse m_lastcount in wxCountingOutputStream to store the stream length,
this doesn't make any sense and results in LastWrite() returning completely
wrong results as it expects m_lastcount to be the number of bytes written by
the last operation.

Add m_lastPos member to store the stream length instead.

Also correct wxCountingOutputStream documentation.

Closes #15215.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
include/wx/stream.h
interface/wx/stream.h
src/common/stream.cpp