path: root/src/corelib/kernel
diff options
authorEdward Welbourne <>2016-02-04 09:44:12 +0100
committerThe Qt Project <>2016-02-04 10:37:33 +0000
commita054349be3ea8e68279ee3f478cc98e1ac522fe4 (patch)
tree359eb70e21247d8016707c9a3c6d645a3cca40c8 /src/corelib/kernel
parentdebfed863affb8e1e509b8c0029034d11853faec (diff)
Removed redundant and distracting test from conditional.
If argumentTypes is NULL then it is indeed not equal to the address of a local static variable, so there is no need to follow the NULL-check with a check that it's not equal to that non-NULL address. Change-Id: I62362db747c0620b2195f7997368f026f535d57c Reviewed-by: Olivier Goffart (Woboq GmbH) <> Reviewed-by: Jędrzej Nowacki <>
Diffstat (limited to 'src/corelib/kernel')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp
index c316ebc69f..5afdd6a4e5 100644
--- a/src/corelib/kernel/qobject.cpp
+++ b/src/corelib/kernel/qobject.cpp
@@ -3536,7 +3536,7 @@ static void queued_activate(QObject *sender, int signal, QObjectPrivate::Connect
QMutexLocker &locker)
const int *argumentTypes = c->argumentTypes.load();
- if (!argumentTypes && argumentTypes != &DIRECT_CONNECTION_ONLY) {
+ if (!argumentTypes) {
QMetaMethod m = QMetaObjectPrivate::signal(sender->metaObject(), signal);
argumentTypes = queuedConnectionTypes(m.parameterTypes());
if (!argumentTypes) // cannot queue arguments