summaryrefslogtreecommitdiffstats
path: root/src/debug.h
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2024-08-22 19:34:23 +1000
committermio <stigma@disroot.org>2024-08-22 23:15:20 +1000
commited55bf072682ebf73239e74b7e3dd286ed5616a5 (patch)
treef13875c92a1b0cd5ba8d925ac5f2c6413e9ccc6d /src/debug.h
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 <stigma@disroot.org>
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h4
1 files changed, 2 insertions, 2 deletions
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) {