summaryrefslogtreecommitdiff
path: root/xmloff/qa
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-10 08:52:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-10 09:18:53 +0100
commitdcb1022362acb2e794bae79d8827557702dcffd7 (patch)
tree937b76408a4c0909c763283b8e40b26d6b406acf /xmloff/qa
parent4e222d9acf6f2373d505ea8d29056c3aea6b2e0c (diff)
loplugin:refcounting also check OWeakObject subclasses
Change-Id: I2d89085a22d7424c6f8f7662307433ce50fc61d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110666 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/qa')
-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 273eed259afe..b5aff93d02be 100644
--- a/xmloff/qa/unit/uxmloff.cxx
+++ b/xmloff/qa/unit/uxmloff.cxx
@@ -44,7 +44,7 @@ public:
CPPUNIT_TEST(testMetaGenerator);
CPPUNIT_TEST_SUITE_END();
private:
- std::unique_ptr<SvXMLExport> pExport;
+ rtl::Reference<SvXMLExport> pExport;
};
Test::Test()
@@ -55,14 +55,14 @@ void Test::setUp()
{
BootstrapFixture::setUp();
- pExport.reset(new SchXMLExport(
+ pExport = new SchXMLExport(
comphelper::getProcessComponentContext(), "SchXMLExport.Compact",
- SvXMLExportFlags::ALL));
+ SvXMLExportFlags::ALL);
}
void Test::tearDown()
{
- pExport.reset();
+ pExport.clear();
BootstrapFixture::tearDown();
}