Replace deprecated std::auto_ptr with wxScopedPtr

This commit is contained in:
Maarten Bent
2017-11-25 16:59:54 +01:00
parent a065e98a22
commit cbf13e68a2

View File

@@ -32,7 +32,7 @@
#include "wx/url.h"
#include "wx/sstream.h"
#include "wx/thread.h"
#include <memory>
#include "wx/scopedptr.h"
// --------------------------------------------------------------------------
// resources
@@ -594,7 +594,7 @@ void DoDownload(const wxString& urlname)
// Try to get the input stream (connects to the given URL)
wxLogMessage("Establishing connection to \"%s\"...", urlname);
const std::auto_ptr<wxInputStream> data(url.GetInputStream());
const wxScopedPtr<wxInputStream> data(url.GetInputStream());
if ( !data.get() )
{
wxLogError("Failed to retrieve URL \"%s\"", urlname);