summaryrefslogtreecommitdiff
path: root/test/source/sheet
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-16 15:47:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-17 07:44:18 +0100
commit1c9f0d9d8ee1a13d30be924cddaa94343fd8c840 (patch)
tree60348a9a4784cf2e5cb963045b7f796e4694f909 /test/source/sheet
parent27078ce8cb03f6ba61be5ce75c5231bc8798d6fe (diff)
loplugin:referencecasting in test..toolkit
Change-Id: Ia290ff4849f4d7eda978c7b1e2c7f36de744056f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110997 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test/source/sheet')
-rw-r--r--test/source/sheet/xactivationbroadcaster.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/source/sheet/xactivationbroadcaster.cxx b/test/source/sheet/xactivationbroadcaster.cxx
index 93fa5ab93689..6c7769db5a38 100644
--- a/test/source/sheet/xactivationbroadcaster.cxx
+++ b/test/source/sheet/xactivationbroadcaster.cxx
@@ -51,8 +51,7 @@ void XActivationBroadcaster::testAddRemoveActivationEventListener()
xAB->addActivationEventListener(nullptr);
rtl::Reference<MockedActivationEventListener> xListener = new MockedActivationEventListener();
- xAB->addActivationEventListener(
- uno::Reference<sheet::XActivationEventListener>(xListener.get()));
+ xAB->addActivationEventListener(uno::Reference<sheet::XActivationEventListener>(xListener));
uno::Reference<sheet::XSpreadsheetView> xView(xAB, UNO_QUERY_THROW);
uno::Reference<sheet::XSpreadsheet> xSheet1(xView->getActiveSheet(), UNO_SET_THROW);
@@ -62,8 +61,7 @@ void XActivationBroadcaster::testAddRemoveActivationEventListener()
CPPUNIT_ASSERT_MESSAGE("Listener wasn't called", xListener->mbListenerCalled);
- xAB->removeActivationEventListener(
- uno::Reference<sheet::XActivationEventListener>(xListener.get()));
+ xAB->removeActivationEventListener(uno::Reference<sheet::XActivationEventListener>(xListener));
xView->setActiveSheet(xSheet1);
CPPUNIT_ASSERT_MESSAGE("Listener still called after removal", xListener->mbListenerCalled);
}