Replaced auto_ptr with unique_ptr in CppUnit

This commit is contained in:
Jez Higgins 2020-04-16 19:43:13 +01:00
parent e08ca80bb1
commit 18e1da2f93

View file

@ -56,16 +56,16 @@ public:
protected: protected:
void runTest () void runTest ()
{ (m_fixture.get ()->*m_test)(); } { (m_fixture.get ()->*m_test)(); }
void setUp () void setUp ()
{ m_fixture.get ()->setUp (); } { m_fixture->setUp (); }
void tearDown () void tearDown ()
{ m_fixture.get ()->tearDown (); } { m_fixture->tearDown (); }
private: private:
std::auto_ptr<Fixture> m_fixture; std::unique_ptr<Fixture> m_fixture;
TestMethod m_test; TestMethod m_test;
}; };