mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
repair constructor that takes QByteArray in PacketList
This commit is contained in:
parent
9c9c3d5120
commit
b71678dfdb
4 changed files with 4 additions and 18 deletions
|
@ -13,13 +13,7 @@
|
|||
|
||||
#include "NLPacket.h"
|
||||
|
||||
NLPacketList::NLPacketList(PacketType::Value packetType) :
|
||||
PacketList(packetType)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
NLPacketList::NLPacketList(PacketType::Value packetType, const QByteArray& extendedHeader) :
|
||||
NLPacketList::NLPacketList(PacketType::Value packetType, QByteArray extendedHeader) :
|
||||
PacketList(packetType, extendedHeader)
|
||||
{
|
||||
|
||||
|
|
|
@ -16,8 +16,7 @@
|
|||
|
||||
class NLPacketList : public PacketList {
|
||||
public:
|
||||
NLPacketList(PacketType::Value packetType);
|
||||
NLPacketList(PacketType::Value packetType, const QByteArray& extendedHeader);
|
||||
NLPacketList(PacketType::Value packetType, QByteArray extendedHeader = QByteArray());
|
||||
|
||||
private:
|
||||
NLPacketList(const NLPacketList& other) = delete;
|
||||
|
|
|
@ -15,13 +15,7 @@
|
|||
|
||||
#include "Packet.h"
|
||||
|
||||
PacketList::PacketList(PacketType::Value packetType) :
|
||||
_packetType(packetType)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
PacketList::PacketList(PacketType::Value packetType, const QByteArray& extendedHeader) :
|
||||
PacketList::PacketList(PacketType::Value packetType, QByteArray extendedHeader) :
|
||||
_packetType(packetType),
|
||||
_extendedHeader(extendedHeader)
|
||||
{
|
||||
|
|
|
@ -21,8 +21,7 @@ class Packet;
|
|||
class PacketList : public QIODevice {
|
||||
Q_OBJECT
|
||||
public:
|
||||
PacketList(PacketType::Value packetType);
|
||||
PacketList(PacketType::Value packetType, const QByteArray& extendedHeader);
|
||||
PacketList(PacketType::Value packetType, QByteArray extendedHeader = QByteArray());
|
||||
|
||||
virtual bool isSequential() const { return true; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue