diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-23 10:15:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-23 15:25:26 +0200 |
commit | 8a54339fc83fe9abaaace6f9f374697e6923d684 (patch) | |
tree | 516e82bb9eca2d586aa7acebbe369f67ff707a7f /sd/source/ui/tools/EventMultiplexer.cxx | |
parent | d34f1df73806e9ca05fa0d07da619e2c0f01b6f7 (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 'sd/source/ui/tools/EventMultiplexer.cxx')
-rw-r--r-- | sd/source/ui/tools/EventMultiplexer.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sd/source/ui/tools/EventMultiplexer.cxx b/sd/source/ui/tools/EventMultiplexer.cxx index 1c86d4c644c0..59fa6e115ab8 100644 --- a/sd/source/ui/tools/EventMultiplexer.cxx +++ b/sd/source/ui/tools/EventMultiplexer.cxx @@ -204,9 +204,7 @@ EventMultiplexer::Implementation::Implementation (ViewShellBase& rBase) mxFrameWeak = xFrame; if (xFrame.is()) { - xFrame->addFrameActionListener ( - Reference<frame::XFrameActionListener>( - static_cast<XWeak*>(this), UNO_QUERY)); + xFrame->addFrameActionListener ( Reference<frame::XFrameActionListener>(this) ); mbListeningToFrame = true; } @@ -265,8 +263,7 @@ void EventMultiplexer::Implementation::ReleaseListeners() if (xFrame.is()) { xFrame->removeFrameActionListener ( - Reference<frame::XFrameActionListener>( - static_cast<XWeak*>(this), UNO_QUERY)); + Reference<frame::XFrameActionListener>(this) ); } } |