mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:49:34 +02:00
call QIODevice constructor from Packet copy
This commit is contained in:
parent
c846efb203
commit
6419e49f4b
1 changed files with 4 additions and 1 deletions
|
@ -100,8 +100,11 @@ Packet::Packet(std::unique_ptr<char> data, qint64 size, const HifiSockAddr& send
|
||||||
_payloadStart = _packet.get() + (_packetSize - _payloadCapacity);
|
_payloadStart = _packet.get() + (_packetSize - _payloadCapacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
Packet::Packet(const Packet& other) {
|
Packet::Packet(const Packet& other) :
|
||||||
|
QIODevice()
|
||||||
|
{
|
||||||
*this = other;
|
*this = other;
|
||||||
|
this->seek(other.pos());
|
||||||
}
|
}
|
||||||
|
|
||||||
Packet& Packet::operator=(const Packet& other) {
|
Packet& Packet::operator=(const Packet& other) {
|
||||||
|
|
Loading…
Reference in a new issue