diff --git a/samples/sockets/client.cpp b/samples/sockets/client.cpp index b59736b2ed..ae392f1106 100644 --- a/samples/sockets/client.cpp +++ b/samples/sockets/client.cpp @@ -32,7 +32,7 @@ #include "wx/url.h" #include "wx/sstream.h" #include "wx/thread.h" -#include +#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 data(url.GetInputStream()); + const wxScopedPtr data(url.GetInputStream()); if ( !data.get() ) { wxLogError("Failed to retrieve URL \"%s\"", urlname);