mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 18:13:29 +02:00
fix a missing templated type in PacketList
This commit is contained in:
parent
cb49d89369
commit
d3e48e1293
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue