]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/net/socket.cpp
insert missing iclude file
[wxWidgets.git] / tests / net / socket.cpp
index a34993bc7bb2ce0a3eb7bb16faa782e6606f240f..c0eb7e8fe945e733f47be547b4b4bdc4080f039a 100644 (file)
@@ -246,8 +246,9 @@ void SocketTestCase::UrlTest()
     SocketTestEventLoop loop(ms_useLoop);
 
     wxURL url("http://" + gs_serverHost);
-    wxInputStream * const in = url.GetInputStream();
-    CPPUNIT_ASSERT( in );
+
+    const std::auto_ptr<wxInputStream> in(url.GetInputStream());
+    CPPUNIT_ASSERT( in.get() );
 
     wxStringOutputStream out;
     CPPUNIT_ASSERT_EQUAL( wxSTREAM_EOF, in->Read(out).GetLastError() );