summaryrefslogtreecommitdiff
path: root/xmloff/qa/unit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-25 10:52:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-30 08:39:04 +0200
commitb0631cc1454d99cbaa948e54c3b0c246bd27bf1c (patch)
tree3cfcb2ae2e43f37395d33ba319194f8a6162d6e9 /xmloff/qa/unit
parentaf73d613118bb141a51e56e4c8da405cc3e1298f (diff)
loplugin:useuniqueptr in XMLTextParagraphExport
Change-Id: I753bbfc60172a36e1f3ba08398dc17ee14e0c551 Reviewed-on: https://gerrit.libreoffice.org/53604 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/qa/unit')
-rw-r--r--xmloff/qa/unit/uxmloff.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/qa/unit/uxmloff.cxx b/xmloff/qa/unit/uxmloff.cxx
index 71a1b371f006..c2460dc496d5 100644
--- a/xmloff/qa/unit/uxmloff.cxx
+++ b/xmloff/qa/unit/uxmloff.cxx
@@ -43,7 +43,7 @@ public:
CPPUNIT_TEST(testMetaGenerator);
CPPUNIT_TEST_SUITE_END();
private:
- SvXMLExport *pExport;
+ std::unique_ptr<SvXMLExport> pExport;
};
Test::Test()
@@ -55,14 +55,14 @@ void Test::setUp()
{
BootstrapFixture::setUp();
- pExport = new SchXMLExport(
+ pExport.reset(new SchXMLExport(
comphelper::getProcessComponentContext(), "SchXMLExport.Compact",
- SvXMLExportFlags::ALL);
+ SvXMLExportFlags::ALL));
}
void Test::tearDown()
{
- delete pExport;
+ pExport.reset();
BootstrapFixture::tearDown();
}