mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:57:13 +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"
|
#include "NLPacket.h"
|
||||||
|
|
||||||
NLPacketList::NLPacketList(PacketType::Value packetType) :
|
NLPacketList::NLPacketList(PacketType::Value packetType, QByteArray extendedHeader) :
|
||||||
PacketList(packetType)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
NLPacketList::NLPacketList(PacketType::Value packetType, const QByteArray& extendedHeader) :
|
|
||||||
PacketList(packetType, extendedHeader)
|
PacketList(packetType, extendedHeader)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
|
|
||||||
class NLPacketList : public PacketList {
|
class NLPacketList : public PacketList {
|
||||||
public:
|
public:
|
||||||
NLPacketList(PacketType::Value packetType);
|
NLPacketList(PacketType::Value packetType, QByteArray extendedHeader = QByteArray());
|
||||||
NLPacketList(PacketType::Value packetType, const QByteArray& extendedHeader);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NLPacketList(const NLPacketList& other) = delete;
|
NLPacketList(const NLPacketList& other) = delete;
|
||||||
|
|
|
@ -15,13 +15,7 @@
|
||||||
|
|
||||||
#include "Packet.h"
|
#include "Packet.h"
|
||||||
|
|
||||||
PacketList::PacketList(PacketType::Value packetType) :
|
PacketList::PacketList(PacketType::Value packetType, QByteArray extendedHeader) :
|
||||||
_packetType(packetType)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
PacketList::PacketList(PacketType::Value packetType, const QByteArray& extendedHeader) :
|
|
||||||
_packetType(packetType),
|
_packetType(packetType),
|
||||||
_extendedHeader(extendedHeader)
|
_extendedHeader(extendedHeader)
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,8 +21,7 @@ class Packet;
|
||||||
class PacketList : public QIODevice {
|
class PacketList : public QIODevice {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
PacketList(PacketType::Value packetType);
|
PacketList(PacketType::Value packetType, QByteArray extendedHeader = QByteArray());
|
||||||
PacketList(PacketType::Value packetType, const QByteArray& extendedHeader);
|
|
||||||
|
|
||||||
virtual bool isSequential() const { return true; }
|
virtual bool isSequential() const { return true; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue