diff options
author | Jochen Seemann <seemann.jochen@gmail.com> | 2018-07-22 22:19:56 +0200 |
---|---|---|
committer | Jochen Seemann <seemann.jochen@gmail.com> | 2019-01-04 22:21:01 +0000 |
commit | 2403f8dc6f1f72bab326025a78b98ec5f81a3d34 (patch) | |
tree | dcd127d3378716a7788be10865dafa5ca3121a1c /src/plugins/avfoundation/mediaplayer/avfvideowidgetcontrol.mm | |
parent | 34d15785600f98faa4a51827b452d6c488e4c10c (diff) |
avfoundation: modernize by using nullptr and override
Change-Id: Ifd483f925ed69f0ba35c46facfdb571dea87c1ac
Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
Diffstat (limited to 'src/plugins/avfoundation/mediaplayer/avfvideowidgetcontrol.mm')
-rw-r--r-- | src/plugins/avfoundation/mediaplayer/avfvideowidgetcontrol.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/avfvideowidgetcontrol.mm b/src/plugins/avfoundation/mediaplayer/avfvideowidgetcontrol.mm index 287dd3add..91ece817e 100644 --- a/src/plugins/avfoundation/mediaplayer/avfvideowidgetcontrol.mm +++ b/src/plugins/avfoundation/mediaplayer/avfvideowidgetcontrol.mm @@ -56,7 +56,7 @@ AVFVideoWidgetControl::AVFVideoWidgetControl(QObject *parent) , m_hue(0) , m_saturation(0) { - m_videoWidget = new AVFVideoWidget(0); + m_videoWidget = new AVFVideoWidget(nullptr); } AVFVideoWidgetControl::~AVFVideoWidgetControl() @@ -73,7 +73,7 @@ void AVFVideoWidgetControl::setLayer(void *playerLayer) qDebug() << Q_FUNC_INFO << playerLayer; #endif - m_videoWidget->setPlayerLayer((AVPlayerLayer*)playerLayer); + m_videoWidget->setPlayerLayer(static_cast<AVPlayerLayer*>(playerLayer)); } |