Update PacketReceiver to pass NLPacket as NLPacket&

This commit is contained in:
Ryan Huffman 2015-07-09 16:06:21 -07:00
parent 2380fb23c3
commit 976d14736d

View file

@ -68,7 +68,7 @@ void PacketReceiver::processDatagrams() {
//TODO Update packet
std::unique_ptr<NLPacket> packet;
bool success = QMetaObject::invokeMethod(listener.first, listener.second,
Q_ARG(std::unique_ptr<NLPacket>, packet),
Q_ARG(NLPacket&, *packet),
Q_ARG(HifiSockAddr, senderSockAddr));
if (!success) {
qDebug() << "Error sending packet " << incomingType << " to listener: " << listener.first->objectName() << "::" << listener.second;