summaryrefslogtreecommitdiff
path: root/sdext/source/presenter/PresenterController.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-23 10:15:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-23 15:25:26 +0200
commit8a54339fc83fe9abaaace6f9f374697e6923d684 (patch)
tree516e82bb9eca2d586aa7acebbe369f67ff707a7f /sdext/source/presenter/PresenterController.cxx
parentd34f1df73806e9ca05fa0d07da619e2c0f01b6f7 (diff)
loplugin:referencecasting look through more clang Types
Note that because of where the fix resides, loplugin:redundantcast also notices a few more things. Change-Id: I0b66047fadfff2c5ceafcbd3eab085de00d861a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120865 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/presenter/PresenterController.cxx')
-rw-r--r--sdext/source/presenter/PresenterController.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx
index 86b57ca73794..9aa5af7b2201 100644
--- a/sdext/source/presenter/PresenterController.cxx
+++ b/sdext/source/presenter/PresenterController.cxx
@@ -212,8 +212,7 @@ void PresenterController::disposing()
mxController = nullptr;
}
- Reference<XComponent> xWindowManagerComponent (
- static_cast<XWeak*>(mpWindowManager.get()), UNO_QUERY);
+ Reference<XComponent> xWindowManagerComponent = mpWindowManager;
mpWindowManager = nullptr;
if (xWindowManagerComponent.is())
xWindowManagerComponent->dispose();
@@ -228,8 +227,7 @@ void PresenterController::disposing()
mxNextSlide = nullptr;
mpTheme.reset();
{
- Reference<lang::XComponent> xComponent (
- static_cast<XWeak*>(mpPaneBorderPainter.get()), UNO_QUERY);
+ Reference<lang::XComponent> xComponent = mpPaneBorderPainter;
mpPaneBorderPainter = nullptr;
if (xComponent.is())
xComponent->dispose();