Replace deprecated std::auto_ptr with wxScopedPtr
This commit is contained in:
parent
a065e98a22
commit
cbf13e68a2
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue