Various small interface changes

This commit is contained in:
Tobias Taschner
2018-11-01 12:12:49 +01:00
parent 17d77fe8ce
commit e6b33cb76c
3 changed files with 7 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ public:
void Cancel() wxOVERRIDE; void Cancel() wxOVERRIDE;
wxWebResponse* GetResponse() wxOVERRIDE; wxWebResponse* GetResponse() const wxOVERRIDE;
wxWebAuthChallenge* GetAuthChallenge() const wxOVERRIDE { return m_authChallenge.get(); } wxWebAuthChallenge* GetAuthChallenge() const wxOVERRIDE { return m_authChallenge.get(); }

View File

@@ -69,7 +69,7 @@ public:
virtual void Cancel() = 0; virtual void Cancel() = 0;
virtual wxWebResponse* GetResponse() = 0; virtual wxWebResponse* GetResponse() const = 0;
virtual wxWebAuthChallenge* GetAuthChallenge() const = 0; virtual wxWebAuthChallenge* GetAuthChallenge() const = 0;
@@ -97,12 +97,12 @@ protected:
wxSharedPtr<wxInputStream> m_dataStream; wxSharedPtr<wxInputStream> m_dataStream;
wxWebRequest(wxWebSession& session, int id): wxWebRequest(wxWebSession& session, int id):
m_storage(Storage_Memory),
m_dataSize(0),
m_session(session), m_session(session),
m_id(id), m_id(id),
m_state(State_Idle), m_state(State_Idle),
m_ignoreServerErrorStatus(false), m_ignoreServerErrorStatus(false) { }
m_dataSize(0),
m_storage(Storage_Memory) { }
bool CheckServerStatus(); bool CheckServerStatus();

View File

@@ -264,7 +264,7 @@ void wxWebRequestWinHTTP::Start()
else else
port = wxAtoi(uri.GetPort()); port = wxAtoi(uri.GetPort());
// Open a connction // Open a connection
m_connect = ::WinHttpConnect( m_connect = ::WinHttpConnect(
static_cast<wxWebSessionWinHTTP&>(GetSession()).GetHandle(), static_cast<wxWebSessionWinHTTP&>(GetSession()).GetHandle(),
uri.GetServer().wc_str(), port, 0); uri.GetServer().wc_str(), port, 0);
@@ -346,7 +346,7 @@ void wxWebRequestWinHTTP::Cancel()
} }
} }
wxWebResponse* wxWebRequestWinHTTP::GetResponse() wxWebResponse* wxWebRequestWinHTTP::GetResponse() const
{ {
return m_response.get(); return m_response.get();
} }