Remove deprecated usage of wxRemove()

This commit is contained in:
Tobias Taschner
2018-10-31 10:07:02 +01:00
parent 22f1894266
commit f64fbf0b4b

View File

@@ -124,7 +124,7 @@ void wxWebRequest::ProcessStateEvent(State state, const wxString& failMsg)
// Remove temporary file if it still exists // Remove temporary file if it still exists
if ( state == State_Completed && m_storage == Storage::Storage_File && if ( state == State_Completed && m_storage == Storage::Storage_File &&
wxFileExists(responseFileName) ) wxFileExists(responseFileName) )
wxRemove(responseFileName); wxRemoveFile(responseFileName);
// Remove reference after the request is no longer active // Remove reference after the request is no longer active
if (state == State_Completed || state == State_Failed || if (state == State_Completed || state == State_Failed ||
@@ -145,7 +145,7 @@ wxWebResponse::wxWebResponse(wxWebRequest& request) :
wxWebResponse::~wxWebResponse() wxWebResponse::~wxWebResponse()
{ {
if ( wxFileExists(m_file.GetName()) ) if ( wxFileExists(m_file.GetName()) )
wxRemove(m_file.GetName()); wxRemoveFile(m_file.GetName());
} }
bool wxWebResponse::Init() bool wxWebResponse::Init()