summaryrefslogtreecommitdiff
path: root/svx/qa/unit
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 /svx/qa/unit
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 'svx/qa/unit')
-rw-r--r--svx/qa/unit/XTableImportExportTest.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/qa/unit/XTableImportExportTest.cxx b/svx/qa/unit/XTableImportExportTest.cxx
index 31962a52be52..b4c071204005 100644
--- a/svx/qa/unit/XTableImportExportTest.cxx
+++ b/svx/qa/unit/XTableImportExportTest.cxx
@@ -41,8 +41,8 @@ CPPUNIT_TEST_FIXTURE(XTableImportExportTest, testImportExport)
BitmapChecksum aChecksum(0);
{
- XBitmapList xBitmapList(aTempURL, "REF");
- uno::Reference<container::XNameContainer> xNameContainer(xBitmapList.createInstance());
+ rtl::Reference<XBitmapList> xBitmapList = new XBitmapList(aTempURL, "REF");
+ uno::Reference<container::XNameContainer> xNameContainer(xBitmapList->createInstance());
CPPUNIT_ASSERT(xNameContainer.is());
Bitmap aBitmap(Size(5, 5), 24);
@@ -52,16 +52,16 @@ CPPUNIT_TEST_FIXTURE(XTableImportExportTest, testImportExport)
uno::Reference<awt::XBitmap> xBitmap(aGraphic.GetXGraphic(), css::uno::UNO_QUERY);
xNameContainer->insertByName("SomeBitmap", uno::makeAny(xBitmap));
- xBitmapList.Save();
+ xBitmapList->Save();
aChecksum = aBitmap.GetChecksum();
}
{
- XBitmapList xBitmapList(aTempURL, "REF");
- bool bResult = xBitmapList.Load();
+ rtl::Reference<XBitmapList> xBitmapList = new XBitmapList(aTempURL, "REF");
+ bool bResult = xBitmapList->Load();
CPPUNIT_ASSERT(bResult);
- uno::Reference<container::XNameContainer> xNameContainer(xBitmapList.createInstance());
+ uno::Reference<container::XNameContainer> xNameContainer(xBitmapList->createInstance());
CPPUNIT_ASSERT(xNameContainer.is());
uno::Any aAny = xNameContainer->getByName("SomeBitmap");