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

@@ -12,6 +12,7 @@
#define WX_TEST_ARCHIVE_ITERATOR
#include "wx/archive.h"
#include "wx/scopedptr.h"
#include "wx/wfstream.h"
#include <map>
@@ -215,7 +216,7 @@ protected:
typedef std::map<wxString, TestEntry*> TestEntries;
TestEntries m_testEntries; // test data
std::auto_ptr<ClassFactoryT> m_factory; // factory to make classes
wxScopedPtr<ClassFactoryT> m_factory; // factory to make classes
int m_options; // test options
wxDateTime m_timeStamp; // timestamp to give test entries
int m_id; // select between the possibilites