diff options
Diffstat (limited to 'xmloff/qa')
-rw-r--r-- | xmloff/qa/unit/tokenmap-test.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/qa/unit/tokenmap-test.cxx b/xmloff/qa/unit/tokenmap-test.cxx index 6fef38cdfea5..e5d3bd3965a3 100644 --- a/xmloff/qa/unit/tokenmap-test.cxx +++ b/xmloff/qa/unit/tokenmap-test.cxx @@ -37,22 +37,20 @@ public: CPPUNIT_TEST_SUITE_END(); private: - token::TokenMap* pTokenMap; + std::unique_ptr<token::TokenMap> pTokenMap; }; -TokenmapTest::TokenmapTest() : pTokenMap(nullptr) +TokenmapTest::TokenmapTest() : pTokenMap(new token::TokenMap) { } void TokenmapTest::setUp() { CppUnit::TestFixture::setUp(); - pTokenMap = new token::TokenMap; } void TokenmapTest::tearDown() { - delete pTokenMap; CppUnit::TestFixture::tearDown(); } |