From dfd3715051e3f8997299ad9ac0934fcdc602e163 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Tue, 21 Oct 2014 23:02:00 +0200 Subject: [PATCH] Use nullptr instead of 0 --- src/libtomahawk/audio/AudioOutput.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libtomahawk/audio/AudioOutput.cpp b/src/libtomahawk/audio/AudioOutput.cpp index 8d3d2df4d..b3c6fd011 100644 --- a/src/libtomahawk/audio/AudioOutput.cpp +++ b/src/libtomahawk/audio/AudioOutput.cpp @@ -131,16 +131,16 @@ AudioOutput::~AudioOutput() { tDebug() << Q_FUNC_INFO; - if ( vlcPlayer != 0 ) { + if ( vlcPlayer != nullptr ) { libvlc_media_player_stop( vlcPlayer ); libvlc_media_player_release( vlcPlayer ); - vlcPlayer = 0; + vlcPlayer = nullptr; } - if ( vlcMedia != 0 ) { + if ( vlcMedia != nullptr ) { libvlc_media_release( vlcMedia ); - vlcMedia = 0; + vlcMedia = nullptr; } - if ( vlcInstance != 0 ) { + if ( vlcInstance != nullptr ) { libvlc_release( vlcInstance ); } } @@ -165,13 +165,13 @@ AudioOutput::setCurrentSource(MediaStream* stream) setState(Loading); - if ( vlcMedia != 0 ) { + if ( vlcMedia != nullptr ) { // Ensure playback is stopped, then release media libvlc_media_player_stop( vlcPlayer ); libvlc_media_release( vlcMedia ); - vlcMedia = 0; + vlcMedia = nullptr; } - if ( m_autoDelete && currentStream != 0 ) { + if ( m_autoDelete && currentStream != nullptr ) { delete currentStream; }