Replace deprecated std::auto_ptr with wxScopedPtr
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user