diff options
author | mio <[email protected]> | 2024-08-22 19:34:23 +1000 |
---|---|---|
committer | mio <[email protected]> | 2024-08-22 23:15:20 +1000 |
commit | ed55bf072682ebf73239e74b7e3dd286ed5616a5 (patch) | |
tree | f13875c92a1b0cd5ba8d925ac5f2c6413e9ccc6d /src/app/xineEngine.cpp | |
parent | 5e965846d17f7053dca99f3366ce5d8f21e8f649 (diff) | |
download | codeine-ed55bf072682ebf73239e74b7e3dd286ed5616a5.tar.gz codeine-ed55bf072682ebf73239e74b7e3dd286ed5616a5.zip |
Use nullptr instead of NULL/0 pointer in C++ files
See: https://mirror.git.trinitydesktop.org/gitea/TDE/tde/issues/73
Signed-off-by: mio <[email protected]>
Diffstat (limited to 'src/app/xineEngine.cpp')
-rw-r--r-- | src/app/xineEngine.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/app/xineEngine.cpp b/src/app/xineEngine.cpp index 04be1cf..3ae7220 100644 --- a/src/app/xineEngine.cpp +++ b/src/app/xineEngine.cpp @@ -25,19 +25,19 @@ namespace Codeine { -VideoWindow *VideoWindow::s_instance = 0; +VideoWindow *VideoWindow::s_instance = nullptr; bool VideoWindow::s_logarithmicVolume = false; VideoWindow::VideoWindow( TQWidget *parent ) : TQWidget( parent, "VideoWindow" ) - , m_osd( 0 ) - , m_stream( 0 ) - , m_eventQueue( 0 ) - , m_videoPort( 0 ) - , m_audioPort( 0 ) - , m_scope( 0 ) - , m_xine( 0 ) + , m_osd( nullptr ) + , m_stream( nullptr ) + , m_eventQueue( nullptr ) + , m_videoPort( nullptr ) + , m_audioPort( nullptr ) + , m_scope( nullptr ) + , m_xine( nullptr ) , m_current_vpts( 0 ) { DEBUG_BLOCK @@ -136,7 +136,7 @@ VideoWindow::init() m_videoPort = xine_open_video_driver( m_xine, "auto", XINE_VISUAL_TYPE_X11, videoWindow()->x11Visual() ); debug() << "xine_open_audio_driver()\n"; - m_audioPort = xine_open_audio_driver( m_xine, "auto", NULL ); + m_audioPort = xine_open_audio_driver( m_xine, "auto", nullptr ); debug() << "xine_stream_new()\n"; m_stream = xine_stream_new( m_xine, m_audioPort, m_videoPort ); @@ -161,7 +161,7 @@ VideoWindow::init() debug() << "scope_plugin_new()\n"; #if XINE_MAJOR_VERSION > 1 || (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION > 2) || \ (XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION == 2 && XINE_SUB_VERSION >= 10) - m_scope = xine_post_init( m_xine, "codeine-scope", 1, &m_audioPort, NULL ); + m_scope = xine_post_init( m_xine, "codeine-scope", 1, &m_audioPort, nullptr ); #else m_scope = scope_plugin_new( m_xine, m_audioPort ); @@ -279,7 +279,7 @@ VideoWindow::load( const KURL &url ) // ensure old buffers are deleted // FIXME leaves one erroneous buffer - timerEvent( 0 ); + timerEvent( nullptr ); if( m_scope ) { xine_post_out_t *source = xine_get_audio_source( m_stream ); @@ -613,12 +613,12 @@ VideoWindow::scope() return scope; //prune the buffer list and update the m_current_vpts timestamp - timerEvent( 0 ); + timerEvent( nullptr ); const int64_t pts_per_smpls = 0; //scope_plugin_pts_per_smpls( m_scope ); for( int channels = xine_get_stream_info( m_stream, XINE_STREAM_INFO_AUDIO_CHANNELS ), frame = 0; frame < SCOPE_SIZE; ) { - MyNode *best_node = 0; + MyNode *best_node = nullptr; for( MyNode *node = myList->next; node != myList; node = node->next ) if( node->vpts <= m_current_vpts && (!best_node || node->vpts > best_node->vpts) ) @@ -880,7 +880,7 @@ VideoWindow::toggleDVDMenu() { xine_event_t e; e.type = XINE_EVENT_INPUT_MENU1; - e.data = NULL; + e.data = nullptr; e.data_length = 0; xine_event_send( m_stream, &e ); |