diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2025-08-29 09:31:51 -0700 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2025-10-24 01:52:01 +0000 |
| commit | 22657b73183c3997be2751fd41d608e226615a40 (patch) | |
| tree | 6cead8f4da1c28bcdd8644b76392c1a9ba547313 /src/corelib/kernel/qobject.cpp | |
| parent | 06c1b4705ebccedcb2007384540826b7ddc03fee (diff) | |
QObjectPrivate::connectImpl: remove unnecessary check we've already done
We checked above that if the UniqueConnection bit is set, slot is not
null.
Pick-to: 6.10 6.8
Change-Id: I1a323f917be73c0653cefffd852e46ca8b0fa22f
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
| -rw-r--r-- | src/corelib/kernel/qobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp index f5e2e7d80e6..02c9f00f301 100644 --- a/src/corelib/kernel/qobject.cpp +++ b/src/corelib/kernel/qobject.cpp @@ -5496,7 +5496,7 @@ QMetaObject::Connection QObjectPrivate::connectImpl(const QObject *sender, int s QOrderedMutexLocker locker(signalSlotLock(sender), signalSlotLock(receiver)); - if (type & Qt::UniqueConnection && slot) { + if (type & Qt::UniqueConnection) { QObjectPrivate::ConnectionData *connections = QObjectPrivate::get(s)->connections.loadRelaxed(); if (connections && connections->signalVectorCount() > signal_index) { const QObjectPrivate::Connection *c2 = connections->signalVector.loadRelaxed()->at(signal_index).first.loadRelaxed(); |
