summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/ssl
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2021-06-24 14:02:49 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2021-07-02 13:05:32 +0000
commit87201ff7122fda45e069c0ca32a16e5ef4e0ceb9 (patch)
tree4a5006b2eeca8f02f16e10279201ce5e3a422fe5 /tests/auto/network/ssl
parentd33040548ff727a040ea66174cbd838e883fed56 (diff)
tst_QDtls: Move the function declaration outside the function
With MSVC it tries to link with the function in the scope qt::tst_QDtls::* where it is not found Pick-to: 6.2 Change-Id: If83a9f69c7b3834248569f6bdf203f5442693080 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/network/ssl')
-rw-r--r--tests/auto/network/ssl/qdtls/tst_qdtls.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/network/ssl/qdtls/tst_qdtls.cpp b/tests/auto/network/ssl/qdtls/tst_qdtls.cpp
index dd380923df..75d949d957 100644
--- a/tests/auto/network/ssl/qdtls/tst_qdtls.cpp
+++ b/tests/auto/network/ssl/qdtls/tst_qdtls.cpp
@@ -169,6 +169,8 @@ Q_DECLARE_METATYPE(QSslKey)
QT_BEGIN_NAMESPACE
+void qt_ForceTlsSecurityLevel();
+
void tst_QDtls::initTestCase()
{
if (!TlsAux::classImplemented(QSsl::ImplementedClass::Dtls))
@@ -196,7 +198,6 @@ void tst_QDtls::initTestCase()
hostName = QStringLiteral("bob.org");
- void qt_ForceTlsSecurityLevel();
qt_ForceTlsSecurityLevel();
}