diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-27 11:06:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-27 18:42:13 +0200 |
commit | 9e0b3423f21c23a8ef2fe749ea7dd7c1194c2f9a (patch) | |
tree | 26f2674f88359c5e6c3e1d0f888c7b31836c36ee /vcl | |
parent | bbd500e14fce92b27cfc09e7cffd346e36eb5fb0 (diff) |
loplugin:referencecasting find more redundant static_cast
Change-Id: I3a51812bbd3fcdc6b11e47cb12962f0d4fa7a2ae
Reviewed-on: https://gerrit.libreoffice.org/78191
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qt5/Qt5AccessibleEventListener.cxx | 3 | ||||
-rw-r--r-- | vcl/source/window/debugevent.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/vcl/qt5/Qt5AccessibleEventListener.cxx b/vcl/qt5/Qt5AccessibleEventListener.cxx index d0733e3d9546..621e541723c8 100644 --- a/vcl/qt5/Qt5AccessibleEventListener.cxx +++ b/vcl/qt5/Qt5AccessibleEventListener.cxx @@ -40,8 +40,7 @@ Qt5AccessibleEventListener::Qt5AccessibleEventListener(const Reference<XAccessib void Qt5AccessibleEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent) { - QAccessibleInterface* pQAccessibleInterface - = static_cast<QAccessibleInterface*>(m_pAccessibleWidget); + QAccessibleInterface* pQAccessibleInterface = m_pAccessibleWidget; Reference<XAccessible> xChild; switch (aEvent.EventId) diff --git a/vcl/source/window/debugevent.cxx b/vcl/source/window/debugevent.cxx index 3aa8d062a0f2..767d1e2b8392 100644 --- a/vcl/source/window/debugevent.cxx +++ b/vcl/source/window/debugevent.cxx @@ -48,7 +48,7 @@ vcl::Window *DebugEventInjector::ChooseWindow() long nIdx = Application::GetTopWindowCount() * getRandom(); pParent = Application::GetTopWindow( nIdx ); if (!pParent) - pParent = static_cast<vcl::Window *>(Application::GetAppWindow()); + pParent = Application::GetAppWindow(); } assert (pParent != nullptr); |