mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-15 19:48:00 +01:00
Replaced auto_ptr with unique_ptr in CppUnit
This commit is contained in:
parent
e08ca80bb1
commit
18e1da2f93
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue