summaryrefslogtreecommitdiffstats
path: root/tests/manual/network_stresstest
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-04-12 13:59:03 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-13 18:15:26 +0200
commitcdc221ae00260c1bea196e2728eb20b83db19bbe (patch)
treed4ae554197b917539397deb381be1b5b21d569fc /tests/manual/network_stresstest
parent76f536d661d4765ef12e146fae1527dcd0508137 (diff)
Fix warnings in manual tests.
- Constructor order. - Unused variables. - size_t -> int conversions. Change-Id: Ic5b016f41d01a4d8153ae0900b607bf946523c1d Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/manual/network_stresstest')
-rw-r--r--tests/manual/network_stresstest/minihttpserver.cpp2
-rw-r--r--tests/manual/network_stresstest/tst_network_stresstest.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/network_stresstest/minihttpserver.cpp b/tests/manual/network_stresstest/minihttpserver.cpp
index e3473a3141..1bafe9363d 100644
--- a/tests/manual/network_stresstest/minihttpserver.cpp
+++ b/tests/manual/network_stresstest/minihttpserver.cpp
@@ -148,7 +148,7 @@ void MiniHttpServerConnection::handlePendingRequest()
return;
}
- QUrl uri = QUrl::fromEncoded(request.mid(4, eol - strlen(http11) - 4));
+ QUrl uri = QUrl::fromEncoded(request.mid(4, eol - int(strlen(http11)) - 4));
source.setFileName(":" + uri.path());
// connection-close?
diff --git a/tests/manual/network_stresstest/tst_network_stresstest.cpp b/tests/manual/network_stresstest/tst_network_stresstest.cpp
index 38a516af82..74237ea9cc 100644
--- a/tests/manual/network_stresstest/tst_network_stresstest.cpp
+++ b/tests/manual/network_stresstest/tst_network_stresstest.cpp
@@ -537,7 +537,7 @@ void tst_NetworkStressTest::blockingMultipleRequests()
qWarning() << "no content-length:" << QString(buffer);
break;
}
- pos += strlen("\r\ncontent-length: ");
+ pos += int(strlen("\r\ncontent-length: "));
int eol = buffer.indexOf("\r\n", pos + 2);
if (eol == -1) {