diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-19 10:25:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-19 10:25:24 +0200 |
commit | 4753582d6858bb88048ec1744ee50ecf766174b2 (patch) | |
tree | fdb3dbcfdf1da830def0aaa7ac5d32e4797db513 /xmloff | |
parent | d01d60be2708c876eaf6b5b58ac784923286c24e (diff) |
attempt to fix the xmloff/tokenmap tinderbox failure
Change-Id: I1b70ef90de374ade858b8207802b8048b2dfd248
Diffstat (limited to 'xmloff')
-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(); } |