summaryrefslogtreecommitdiffstats
path: root/tests/auto/network
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-13 16:50:59 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-27 11:55:06 +0200
commitee92ee7a3cf7ef6017a2950a590005abfd37cf1a (patch)
tree6b3dc1b659e15f494b84f066311b545187a5478c /tests/auto/network
parent3373aa8b351691d395cd15c634ca1b60fd688c6a (diff)
Remove deprecated QProcess methods
Add default parameter for arguments in start, startDetached, and execute for better source compatibility with Qt 5.15. This has the risk of then hiding incorrect calls to the previous overload taking a single "command" strings if code is ported from pre-5.15 or ignores deprecation warnings. This is acceptable, given that the alternative is that all calls to these functions would require a default constructed QStringList as the second parameter. Change-Id: I1ba4df97ac4894d007da5083c8359015d784ddbb Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/network')
-rw-r--r--tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp b/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp
index 4c4113d9d4..b69bfb106c 100644
--- a/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp
+++ b/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp
@@ -1088,7 +1088,7 @@ void tst_QUdpSocket::outOfProcessConnectedClientServerTest()
QSKIP("No qprocess support", SkipAll);
#else
QProcess serverProcess;
- serverProcess.start(QLatin1String("clientserver/clientserver server 1 1"),
+ serverProcess.start(QLatin1String("clientserver/clientserver server 1 1"), {},
QIODevice::ReadWrite | QIODevice::Text);
const auto serverProcessCleaner = qScopeGuard([&serverProcess] {
@@ -1112,7 +1112,7 @@ void tst_QUdpSocket::outOfProcessConnectedClientServerTest()
QProcess clientProcess;
clientProcess.start(QString::fromLatin1("clientserver/clientserver connectedclient %1 %2")
- .arg(QLatin1String("127.0.0.1")).arg(serverPort),
+ .arg(QLatin1String("127.0.0.1")).arg(serverPort), {},
QIODevice::ReadWrite | QIODevice::Text);
const auto clientProcessCleaner = qScopeGuard([&clientProcess] {
@@ -1162,7 +1162,7 @@ void tst_QUdpSocket::outOfProcessUnconnectedClientServerTest()
QSKIP("No qprocess support", SkipAll);
#else
QProcess serverProcess;
- serverProcess.start(QLatin1String("clientserver/clientserver server 1 1"),
+ serverProcess.start(QLatin1String("clientserver/clientserver server 1 1"), {},
QIODevice::ReadWrite | QIODevice::Text);
const auto serverProcessCleaner = qScopeGuard([&serverProcess] {
@@ -1186,7 +1186,7 @@ void tst_QUdpSocket::outOfProcessUnconnectedClientServerTest()
QProcess clientProcess;
clientProcess.start(QString::fromLatin1("clientserver/clientserver unconnectedclient %1 %2")
- .arg(QLatin1String("127.0.0.1")).arg(serverPort),
+ .arg(QLatin1String("127.0.0.1")).arg(serverPort), {},
QIODevice::ReadWrite | QIODevice::Text);
const auto clientProcessCleaner = qScopeGuard([&clientProcess] {