From f64fbf0b4b7400feadc11b182caa9eb44965c829 Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Wed, 31 Oct 2018 10:07:02 +0100 Subject: [PATCH] Remove deprecated usage of wxRemove() --- src/common/webrequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/webrequest.cpp b/src/common/webrequest.cpp index 57368d3055..be00b4a5be 100644 --- a/src/common/webrequest.cpp +++ b/src/common/webrequest.cpp @@ -124,7 +124,7 @@ void wxWebRequest::ProcessStateEvent(State state, const wxString& failMsg) // Remove temporary file if it still exists if ( state == State_Completed && m_storage == Storage::Storage_File && wxFileExists(responseFileName) ) - wxRemove(responseFileName); + wxRemoveFile(responseFileName); // Remove reference after the request is no longer active if (state == State_Completed || state == State_Failed || @@ -145,7 +145,7 @@ wxWebResponse::wxWebResponse(wxWebRequest& request) : wxWebResponse::~wxWebResponse() { if ( wxFileExists(m_file.GetName()) ) - wxRemove(m_file.GetName()); + wxRemoveFile(m_file.GetName()); } bool wxWebResponse::Init()