summaryrefslogtreecommitdiff
path: root/framework/qa
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-15 19:58:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-16 07:52:37 +0100
commit7767ff7b521b7d43a1ea2a4fd19a64bd171da5e0 (patch)
tree55ffa9447129048f87a52d61bbad124051406794 /framework/qa
parent51558d2215a4cf881e357eda7da20688ac61e780 (diff)
loplugin:referencecasting in editeng..framework
Change-Id: Ia3375011ecd0a65afed0f131f477fc1542603fde Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110948 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/qa')
-rw-r--r--framework/qa/cppunit/dispatchtest.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/qa/cppunit/dispatchtest.cxx b/framework/qa/cppunit/dispatchtest.cxx
index 0dd6b4cfc33d..5a1b79207046 100644
--- a/framework/qa/cppunit/dispatchtest.cxx
+++ b/framework/qa/cppunit/dispatchtest.cxx
@@ -190,8 +190,7 @@ CPPUNIT_TEST_FIXTURE(DispatchTest, testInterception)
CPPUNIT_ASSERT(xRegistration.is());
rtl::Reference<MyInterceptor> pInterceptor(new MyInterceptor());
- xRegistration->registerDispatchProviderInterceptor(
- uno::Reference<frame::XDispatchProviderInterceptor>(pInterceptor.get()));
+ xRegistration->registerDispatchProviderInterceptor(pInterceptor);
dispatchCommand(mxComponent, ".uno:Bold", {});
CPPUNIT_ASSERT_EQUAL(1, pInterceptor->getExpected());