Replace remaining std::auto_ptr<> with wxScopedPtr in the tests

This should have been done in b8c9cd3528
to avoid all warnings about std::auto_ptr<> being deprecated when using
g++ 6 or later which compiles in C++14 mode by default.
This commit is contained in:
Vadim Zeitlin
2017-10-31 21:14:05 +01:00
parent 91697a8724
commit 11a5728b32
4 changed files with 19 additions and 20 deletions

View File

@@ -22,7 +22,6 @@
#include "wx/zipstrm.h"
using std::string;
using std::auto_ptr;
///////////////////////////////////////////////////////////////////////////////
@@ -188,7 +187,7 @@ void ZipPipeTestCase::runTest()
TestInputStream in(out, m_id % ((m_options & PipeIn) ? 4 : 3));
wxZipInputStream zip(in);
auto_ptr<wxZipEntry> entry(zip.GetNextEntry());
wxScopedPtr<wxZipEntry> entry(zip.GetNextEntry());
CPPUNIT_ASSERT(entry.get() != NULL);
if ((m_options & PipeIn) == 0)