From 71e8c0f5cf879ccc502c2fa312828b20205aa6f2 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 7 Jul 2015 16:07:54 -0700 Subject: [PATCH] use getPayload instead of constData in PacketList --- libraries/networking/src/PacketList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/networking/src/PacketList.cpp b/libraries/networking/src/PacketList.cpp index 77e1855fe0..b1486e03ee 100644 --- a/libraries/networking/src/PacketList.cpp +++ b/libraries/networking/src/PacketList.cpp @@ -64,7 +64,7 @@ qint64 writeData(const char* data, qint64 maxSize) { } // copy from currentPacket where the segment started to the beginning of the newPacket - newPacket.write(currentPacket.constData() + _segmentStartIndex, numBytesToEnd); + newPacket.write(currentPacket->getPayload() + _segmentStartIndex, numBytesToEnd); // the current segment now starts at the beginning of the new packet _segmentStartIndex = 0; @@ -89,7 +89,7 @@ qint64 writeData(const char* data, qint64 maxSize) { // into a new packet int numBytesToEnd = _currentPacket.size() - _currentPacket.sizeUsed(); - _currentPacket.write(data, numBytesToEnd); + _currentPacket->write(data, numBytesToEnd); // move the current packet to our list of packets _packets.insert(std::move(_currentPacket));