summaryrefslogtreecommitdiffstats
path: root/src/part
diff options
context:
space:
mode:
authormio <[email protected]>2024-08-22 19:34:23 +1000
committermio <[email protected]>2024-08-22 23:15:20 +1000
commited55bf072682ebf73239e74b7e3dd286ed5616a5 (patch)
treef13875c92a1b0cd5ba8d925ac5f2c6413e9ccc6d /src/part
parent5e965846d17f7053dca99f3366ce5d8f21e8f649 (diff)
downloadcodeine-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/part')
-rw-r--r--src/part/videoWindow.cpp14
-rw-r--r--src/part/xineEngine.cpp2
2 files changed, 8 insertions, 8 deletions
diff --git a/src/part/videoWindow.cpp b/src/part/videoWindow.cpp
index 2da1c35..6b8c23d 100644
--- a/src/part/videoWindow.cpp
+++ b/src/part/videoWindow.cpp
@@ -18,7 +18,7 @@
namespace Codeine {
-VideoWindow *VideoWindow::s_instance = 0;
+VideoWindow *VideoWindow::s_instance = nullptr;
namespace X
@@ -30,12 +30,12 @@ namespace X
VideoWindow::VideoWindow( TQWidget *parent, const char *name )
: TQWidget( parent, name )
- , m_osd( 0 )
- , m_stream( 0 )
- , m_eventQueue( 0 )
- , m_videoPort( 0 )
- , m_audioPort( 0 )
- , m_xine( 0 )
+ , m_osd( nullptr )
+ , m_stream( nullptr )
+ , m_eventQueue( nullptr )
+ , m_videoPort( nullptr )
+ , m_audioPort( nullptr )
+ , m_xine( nullptr )
, m_displayRatio( 1 )
{
s_instance = this;
diff --git a/src/part/xineEngine.cpp b/src/part/xineEngine.cpp
index 96108a7..f6bbf87 100644
--- a/src/part/xineEngine.cpp
+++ b/src/part/xineEngine.cpp
@@ -37,7 +37,7 @@ VideoWindow::init()
m_videoPort = xine_open_video_driver( m_xine, "auto", XINE_VISUAL_TYPE_X11, 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 );