summaryrefslogtreecommitdiff
path: root/src/webchannel/signalhandler_p.h
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2013-12-19 16:46:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-27 15:50:36 +0100
commit25568c9d01e5ace5557c9aebc42d0de3cf2873e4 (patch)
treeab176384dee0c4c8e55dbe9d7e67190e883f597a /src/webchannel/signalhandler_p.h
parent85fb9ea87356d28c2ba05fcb2b2018f6a0a91842 (diff)
downloadqtwebchannel-25568c9d01e5ace5557c9aebc42d0de3cf2873e4.tar.gz
Port MetaObjectPublisher benchmarks to C++.
This allows us to remove the public API for the tests and allows for more tests and benchmarks in the future. To achieve this, we re-use the new qmetaobjectpublisher_p.h, which then also must be exported. Change-Id: I3c33b2f5be6cc674cd3092667151dd8da2263cf5 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'src/webchannel/signalhandler_p.h')
-rw-r--r--src/webchannel/signalhandler_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webchannel/signalhandler_p.h b/src/webchannel/signalhandler_p.h
index 2613f92..5bc1f4d 100644
--- a/src/webchannel/signalhandler_p.h
+++ b/src/webchannel/signalhandler_p.h
@@ -272,7 +272,9 @@ void SignalHandler<Receiver>::clear()
}
}
m_connectionsCounter.clear();
+ const SignalArgumentHash keep = m_signalArgumentTypes.take(&QObject::staticMetaObject);
m_signalArgumentTypes.clear();
+ m_signalArgumentTypes[&QObject::staticMetaObject] = keep;
}
#endif // SIGNALHANDLER_H