qt5base-lts/tests/auto/network/access/qnetworkreply
Marc Mutz 79b742b7e0 QtNetwork: use nullary version of qRegisterMetaType<T>("T")
Using the nullary version has the advantage that multiple calls
during a program run are much more efficient, since an inlined
atomic is used to store the result. It also ensures that
Q_DECLARE_METATYPE(T) has been used, whereas qRegisterMetaType<T>("T")
will happily register anything. So I've added the macro where it
was missing, or moved it to a central place when it existed
hidden.

In tst_qnetworkreply, this became a bit tricky, because a private
header is conditionally included, so moved the Q_DECLARE_METATYPE()
into a conditional section, too.

Change-Id: I71484523e4277f4697b7d4b2ddc3505375162727
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-07-25 19:32:41 +02:00
..
certs Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
echo Changed qnetworkreply unittest to work from install directory 2012-02-17 08:25:10 +01:00
test Avoid load(testcase) for installing test helper apps 2012-07-04 02:46:27 +02:00
.gitattributes Create auto test for http HEAD request 2011-10-06 11:24:20 +02:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
bigfile Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
empty Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
image1.jpg Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
image2.jpg Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
image3.jpg Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
index.html fix tst_QNetworkReply::headFromHttp failure 2011-10-12 18:01:19 +02:00
qnetworkreply.pro Changed qnetworkreply unittest to work from install directory 2012-02-17 08:25:10 +01:00
qnetworkreply.qrc Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
resource Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
rfc3252.txt Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
smb-file.txt Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
tst_qnetworkreply.cpp QtNetwork: use nullary version of qRegisterMetaType<T>("T") 2012-07-25 19:32:41 +02:00