From d3496b12310d9fec0e52e537c341e87fcaa2f8b5 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 9 Feb 2011 19:21:58 +0100 Subject: Coding style update for pointer comparison Most developers seem to prefer if (ptr) ... if (!ptr) ... in comparison to if (ptr != 0) ... if (ptr == 0) ... Adjusted the Dolphin-code to use the "most-prefered style" to make contributors happy. --- src/views/versioncontrol/pendingthreadsmaintainer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/versioncontrol/pendingthreadsmaintainer.h') diff --git a/src/views/versioncontrol/pendingthreadsmaintainer.h b/src/views/versioncontrol/pendingthreadsmaintainer.h index a1ad35516..3e99c8657 100644 --- a/src/views/versioncontrol/pendingthreadsmaintainer.h +++ b/src/views/versioncontrol/pendingthreadsmaintainer.h @@ -38,7 +38,7 @@ class QTimer; * \code * ThreadCreator::~ThreadCreator() * { - * if (m_thread != 0) { + * if (m_thread) { * PendingThreadsMaintainer::instance().append(m_thread); * m_thread = 0; * } -- cgit v1.3