Various small interface changes

This commit is contained in:
Tobias Taschner 2018-11-01 12:12:49 +01:00
parent 17d77fe8ce
commit e6b33cb76c
No known key found for this signature in database
GPG Key ID: AE6ECD71294F87FD
3 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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