mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
use getPayload instead of constData in PacketList
This commit is contained in:
parent
b5eb4945ab
commit
71e8c0f5cf
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue