summaryrefslogtreecommitdiffstats
path: root/src/debug.h
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2024-08-22 19:34:23 +1000
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-22 23:12:08 +0900
commitbca2a1a170c5030aeb55b411fd64a4adf02e3434 (patch)
tree66769d4d979fffce4e2f64316df5dd81fa2de795 /src/debug.h
parent55214aea7cf8d37849d1566535a4f13eb04f2528 (diff)
downloadcodeine-bca2a1a170c5030aeb55b411fd64a4adf02e3434.tar.gz
codeine-bca2a1a170c5030aeb55b411fd64a4adf02e3434.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> (cherry picked from commit ed55bf072682ebf73239e74b7e3dd286ed5616a5)
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) {