diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-05-20 15:25:25 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-05-20 15:32:53 (GMT) |
commit | 1ea9fd89e39ce519fd406174a0b5fb4efee67ab7 (patch) | |
tree | 36f98645fe769ca65a47b54a25a428fd57ab4bee /tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp | |
parent | f5772762c9da55157e11249da00715def2b693f5 (diff) | |
download | Qt-1ea9fd89e39ce519fd406174a0b5fb4efee67ab7.zip Qt-1ea9fd89e39ce519fd406174a0b5fb4efee67ab7.tar.gz Qt-1ea9fd89e39ce519fd406174a0b5fb4efee67ab7.tar.bz2 |
tst_QHttpNetworkConnection: Compile fix
Reviewed-by: Peter Hartmann
Diffstat (limited to 'tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp')
-rw-r--r-- | tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp b/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp index b22397f..eb30147 100644 --- a/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp +++ b/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp @@ -42,6 +42,7 @@ #include <QtTest/QtTest> #include "private/qhttpnetworkconnection_p.h" +#include "private/qnoncontiguousbytedevice_p.h" #include <QAuthenticator> #include "../network-settings.h" @@ -303,8 +304,8 @@ void tst_QHttpNetworkConnection::put() QHttpNetworkRequest request(protocol + host + path, QHttpNetworkRequest::Put); QByteArray array = data.toLatin1(); - QBuffer buffer(&array); - request.setData(&buffer); + QNonContiguousByteDevice *bd = QNonContiguousByteDeviceFactory::create(&array); + request.setUploadByteDevice(bd); finishedCalled = false; finishedWithErrorCalled = false; @@ -393,8 +394,8 @@ void tst_QHttpNetworkConnection::post() QHttpNetworkRequest request(protocol + host + path, QHttpNetworkRequest::Post); QByteArray array = data.toLatin1(); - QBuffer buffer(&array); - request.setData(&buffer); + QNonContiguousByteDevice *bd = QNonContiguousByteDeviceFactory::create(&array); + request.setUploadByteDevice(bd); QHttpNetworkReply *reply = connection.sendRequest(request); |