Minor QObject::receivers() cleanup.
Return 0 rather than false; remove extra Q_D(). Change-Id: I3dac733c3fae27c76790f09fd6b63356767a0363 Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
56d78e5086
commit
5533cc9953
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user