repair constructor that takes QByteArray in PacketList

This commit is contained in:
Stephen Birarda 2015-07-17 15:47:37 -07:00
parent 9c9c3d5120
commit b71678dfdb
4 changed files with 4 additions and 18 deletions

View file

@ -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)
{

View file

@ -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;

View file

@ -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)
{

View file

@ -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; }