fixed comment and docs for GetSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
90e3949c04
commit
f6e7cd0a19
@ -100,9 +100,5 @@ the file.
|
||||
\wxheading{Warning}
|
||||
|
||||
There are streams which do not have size by definition, such as socket streams.
|
||||
In that cases, GetSize returns an invalid size represented by
|
||||
|
||||
\begin{verbatim}
|
||||
~(size_t)0
|
||||
\end{verbatim}
|
||||
In that cases, GetSize returns $0$ so you should always test its return value.
|
||||
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
// reset the stream state
|
||||
void Reset() { m_lasterror = wxSTREAM_NO_ERROR; }
|
||||
|
||||
// deprecated (doesn't make sense!), don't use
|
||||
// this doesn't make sense for all streams, always test its return value
|
||||
virtual size_t GetSize() const { return 0; }
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_2
|
||||
|
Loading…
Reference in New Issue
Block a user