[Libreoffice-commits] core.git: xmloff/qa

Noel Grandin noel at peralex.com
Fri Aug 19 08:25:50 UTC 2016


 xmloff/qa/unit/tokenmap-test.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 4753582d6858bb88048ec1744ee50ecf766174b2
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Aug 19 10:25:05 2016 +0200

    attempt to fix the xmloff/tokenmap tinderbox failure
    
    Change-Id: I1b70ef90de374ade858b8207802b8048b2dfd248

diff --git a/xmloff/qa/unit/tokenmap-test.cxx b/xmloff/qa/unit/tokenmap-test.cxx
index 6fef38c..e5d3bd3 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();
 }
 


More information about the Libreoffice-commits mailing list