From 505d0768f8392e3c4775425dd97f41e1c829ef44 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 30 Apr 2016 18:23:42 +0100 Subject: Apply clang-tidy: modernize-use-nullptr --- src/modules/dcc/DccVoiceWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/dcc/DccVoiceWindow.cpp') diff --git a/src/modules/dcc/DccVoiceWindow.cpp b/src/modules/dcc/DccVoiceWindow.cpp index 0a353bfaf..6b5e524af 100644 --- a/src/modules/dcc/DccVoiceWindow.cpp +++ b/src/modules/dcc/DccVoiceWindow.cpp @@ -446,7 +446,7 @@ bool DccVoiceThread::soundStep() // have stuff to play, but it's not enough to fill the pre-buffer // struct timeval tv; - gettimeofday(&tv, 0); + gettimeofday(&tv, nullptr); long int sigBufferTime = (tv.tv_sec * 1000) + (tv.tv_usec / 1000); @@ -487,7 +487,7 @@ bool DccVoiceThread::soundStep() struct timeval tv; tv.tv_sec = 0; tv.tv_usec = 10; - int ret = select(m_soundFd + 1, &rs, 0, 0, &tv); + int ret = select(m_soundFd + 1, &rs, nullptr, nullptr, &tv); if(ret > 0) { // This is rather easy... @@ -693,7 +693,7 @@ DccVoiceWindow::DccVoiceWindow(DccDescriptor * dcc, const char * name) : DccWindow(KviWindow::DccVoice, name, dcc) { m_pDescriptor = dcc; - m_pSlaveThread = 0; + m_pSlaveThread = nullptr; m_pSplitter = new KviTalSplitter(Qt::Horizontal, this); m_pSplitter->setObjectName("dcc_window_splitter"); @@ -772,7 +772,7 @@ DccVoiceWindow::~DccVoiceWindow() { m_pSlaveThread->terminate(); delete m_pSlaveThread; - m_pSlaveThread = 0; + m_pSlaveThread = nullptr; } KviThreadManager::killPendingEvents(this); -- cgit v1.3.1-10-gc9f91