diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-02-07 15:51:05 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-02-07 15:51:05 (GMT) |
commit | d0d0763f6e0c7709208ad1c573266ee527f6e4ff (patch) | |
tree | 259af63426863bf43463726a5840058ff3a47846 | |
parent | b1d877e32361e8ca5c092a4df4528e5aa868008f (diff) | |
download | Qt-d0d0763f6e0c7709208ad1c573266ee527f6e4ff.zip Qt-d0d0763f6e0c7709208ad1c573266ee527f6e4ff.tar.gz Qt-d0d0763f6e0c7709208ad1c573266ee527f6e4ff.tar.bz2 |
Fix duplicate definition error
As the metatype declaration is now in the qnetworksession header file,
it is not needed in the test code (and causes compile error on some platforms)
Reviewed-By: Markus Goetz
-rw-r--r-- | tests/auto/qnetworksession/test/tst_qnetworksession.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/qnetworksession/test/tst_qnetworksession.cpp b/tests/auto/qnetworksession/test/tst_qnetworksession.cpp index 37fc9cd..3315836 100644 --- a/tests/auto/qnetworksession/test/tst_qnetworksession.cpp +++ b/tests/auto/qnetworksession/test/tst_qnetworksession.cpp @@ -60,8 +60,6 @@ QT_USE_NAMESPACE Q_DECLARE_METATYPE(QNetworkConfiguration) Q_DECLARE_METATYPE(QNetworkConfiguration::Type); -Q_DECLARE_METATYPE(QNetworkSession::State); -Q_DECLARE_METATYPE(QNetworkSession::SessionError); class tst_QNetworkSession : public QObject { @@ -126,8 +124,6 @@ QNetworkConfiguration suitableConfiguration(QString bearerType, QNetworkConfigur void tst_QNetworkSession::initTestCase() { - qRegisterMetaType<QNetworkSession::State>("QNetworkSession::State"); - qRegisterMetaType<QNetworkSession::SessionError>("QNetworkSession::SessionError"); qRegisterMetaType<QNetworkConfiguration>("QNetworkConfiguration"); qRegisterMetaType<QNetworkConfiguration::Type>("QNetworkConfiguration::Type"); |