Initialize all wxHTTPStream members in ctor.
Don't leave m_httpsize and m_read_bytes uninitialized. Closes #14993. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -477,7 +477,13 @@ public:
|
|||||||
size_t m_httpsize;
|
size_t m_httpsize;
|
||||||
unsigned long m_read_bytes;
|
unsigned long m_read_bytes;
|
||||||
|
|
||||||
wxHTTPStream(wxHTTP *http) : wxSocketInputStream(*http), m_http(http) {}
|
wxHTTPStream(wxHTTP *http) : wxSocketInputStream(*http)
|
||||||
|
{
|
||||||
|
m_http = http;
|
||||||
|
m_httpsize = 0;
|
||||||
|
m_read_bytes = 0;
|
||||||
|
}
|
||||||
|
|
||||||
size_t GetSize() const { return m_httpsize; }
|
size_t GetSize() const { return m_httpsize; }
|
||||||
virtual ~wxHTTPStream(void) { m_http->Abort(); }
|
virtual ~wxHTTPStream(void) { m_http->Abort(); }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user