diff --git a/docs/latex/wx/strmbase.tex b/docs/latex/wx/strmbase.tex index 3a18bd74a0..857394939e 100644 --- a/docs/latex/wx/strmbase.tex +++ b/docs/latex/wx/strmbase.tex @@ -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. diff --git a/include/wx/stream.h b/include/wx/stream.h index 2c770c2b3e..151dd0bca4 100644 --- a/include/wx/stream.h +++ b/include/wx/stream.h @@ -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