From ed55bf072682ebf73239e74b7e3dd286ed5616a5 Mon Sep 17 00:00:00 2001 From: mio Date: Thu, 22 Aug 2024 19:34:23 +1000 Subject: 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 --- src/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index 9214083..4725486 100644 --- a/src/debug.h +++ b/src/debug.h @@ -164,7 +164,7 @@ namespace Debug Block( const char *label ) : m_label( label ) { - gettimeofday( &m_start, 0 ); + gettimeofday( &m_start, nullptr ); kdDebug() << indent() << "BEGIN: " << label << "\n"; DEBUG_INDENT @@ -173,7 +173,7 @@ namespace Debug ~Block() { timeval end; - gettimeofday( &end, 0 ); + gettimeofday( &end, nullptr ); end.tv_sec -= m_start.tv_sec; if( end.tv_usec < m_start.tv_usec) { -- cgit v1.2.3