summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-10-15 17:36:04 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-10-15 17:36:04 (GMT)
commitb91731694dae519acae98a9f78f3655a4c71f03f (patch)
tree075b8845d79f812f9b30d7a0efdee6b1a187cbe6 /Swiften
parent1c5442c46e19f9459cc9f4bffb5b4f16c6969de0 (diff)
downloadswift-contrib-b91731694dae519acae98a9f78f3655a4c71f03f.zip
swift-contrib-b91731694dae519acae98a9f78f3655a4c71f03f.tar.bz2
Use vecptr() instead of .data().
This should fix compilation on msvc9. Change-Id: I74c1cc5f6cf7059e16efc68ed050a348c6b63ff7
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/FileTransfer/UnitTest/SOCKS5BytestreamClientSessionTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/FileTransfer/UnitTest/SOCKS5BytestreamClientSessionTest.cpp b/Swiften/FileTransfer/UnitTest/SOCKS5BytestreamClientSessionTest.cpp
index bb0d9b6..5fe096a 100644
--- a/Swiften/FileTransfer/UnitTest/SOCKS5BytestreamClientSessionTest.cpp
+++ b/Swiften/FileTransfer/UnitTest/SOCKS5BytestreamClientSessionTest.cpp
@@ -164,7 +164,7 @@ public:
clientSession->startReceiving(output);
ByteArray transferData = generateRandomByteArray(1024);
- connection->onDataRead(createSafeByteArrayRef(transferData.data(), transferData.size()));
+ connection->onDataRead(createSafeByteArrayRef(vecptr(transferData), transferData.size()));
CPPUNIT_ASSERT_EQUAL(transferData, output->getData());
}
@@ -194,7 +194,7 @@ public:
clientSession->startSending(input);
eventLoop->processEvents();
- CPPUNIT_ASSERT_EQUAL(createByteArray(transferData.data(), transferData.size()), helper.unprocessedInput);
+ CPPUNIT_ASSERT_EQUAL(createByteArray(vecptr(transferData), transferData.size()), helper.unprocessedInput);
}
@@ -239,7 +239,7 @@ private:
//SWIFT_LOG(debug) << "hexed: " << Hexify::hexify(failingData) << std::endl;
do {
ByteArray rndArray = generateRandomByteArray(correctData->size());
- dataToSend = createSafeByteArrayRef(rndArray.data(), rndArray.size());
+ dataToSend = createSafeByteArrayRef(vecptr(rndArray), rndArray.size());
} while (*dataToSend == *correctData);
connection->onDataRead(dataToSend);
}