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" #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)
{ {

View file

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

View file

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

View file

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