[vlc-commits] gui/qt: VideoWidget::nativeEvent: prefer static_cast
Filip Roséen
git at videolan.org
Thu May 18 21:07:57 CEST 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:02:13 2017 +0200| [db248d3c4ef1f6d8420af22773cca63755d0b1f2] | committer: Jean-Baptiste Kempf
gui/qt: VideoWidget::nativeEvent: prefer static_cast
Given that message is of type pointer-to-void, a static_cast is
enough.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db248d3c4ef1f6d8420af22773cca63755d0b1f2
---
modules/gui/qt/components/interface_widgets.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index b3b9b28b25..60dcb1b30a 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -265,7 +265,7 @@ bool VideoWidget::nativeEvent( const QByteArray& eventType, void* message, long*
#if defined(QT5_HAS_XCB)
if ( eventType == "xcb_generic_event_t" )
{
- const xcb_generic_event_t* xev = reinterpret_cast<const xcb_generic_event_t*>( message );
+ const xcb_generic_event_t* xev = static_cast<const xcb_generic_event_t*>( message );
if ( xev->response_type == XCB_CONFIGURE_NOTIFY )
reportSize();
More information about the vlc-commits
mailing list