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:
@@ -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
|
||||
|
Reference in New Issue
Block a user