fix a missing templated type in PacketList

This commit is contained in:
Stephen Birarda 2015-07-08 20:08:25 -07:00
parent cb49d89369
commit d3e48e1293
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ template <typename T> PacketList<T>::PacketList(PacketType::Value packetType) :
}
template <typename T> std::unique_ptr<NLPacket> PacketList<T>::createPacketWithExtendedHeader() {
template <typename T> std::unique_ptr<T> PacketList<T>::createPacketWithExtendedHeader() {
// use the static create method to create a new packet
auto packet = T::create(_packetType);

View file

@ -40,12 +40,12 @@ public:
protected:
virtual qint64 writeData(const char* data, qint64 maxSize);
virtual qint64 readData(char* data, qint64 maxSize) { return 0; }
private:
PacketList(const PacketList& other) = delete;
PacketList& operator=(const PacketList& other) = delete;
std::unique_ptr<NLPacket> createPacketWithExtendedHeader();
std::unique_ptr<T> createPacketWithExtendedHeader();
PacketType::Value _packetType;
bool _isOrdered = false;