From 5533cc9953258daf6f83038432753069a37a80d3 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Thu, 19 Apr 2012 12:22:08 +1000 Subject: [PATCH] Minor QObject::receivers() cleanup. Return 0 rather than false; remove extra Q_D(). Change-Id: I3dac733c3fae27c76790f09fd6b63356767a0363 Reviewed-by: Kent Hansen Reviewed-by: Olivier Goffart --- src/corelib/kernel/qobject.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp index 6a3e48b127..e35da8085e 100644 --- a/src/corelib/kernel/qobject.cpp +++ b/src/corelib/kernel/qobject.cpp @@ -2182,7 +2182,7 @@ int QObject::receivers(const char *signal) const #ifndef QT_NO_DEBUG err_method_notfound(this, signal-1, "receivers"); #endif - return false; + return 0; } if (d->declarativeData && QAbstractDeclarativeData::receivers) { @@ -2190,7 +2190,6 @@ int QObject::receivers(const char *signal) const metaObject()->indexOfMethod(signal)); } - Q_D(const QObject); QMutexLocker locker(signalSlotLock(this)); if (d->connectionLists) { if (signal_index < d->connectionLists->count()) {