diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-10 08:52:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-10 09:18:53 +0100 |
commit | dcb1022362acb2e794bae79d8827557702dcffd7 (patch) | |
tree | 937b76408a4c0909c763283b8e40b26d6b406acf /svx/qa/unit | |
parent | 4e222d9acf6f2373d505ea8d29056c3aea6b2e0c (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.cxx | 12 |
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"); |