allocate for the container to prevent taking the referance of a temporary
This commit is contained in:
parent
db7bf1dcb3
commit
704c3a2985
@ -245,10 +245,10 @@ void QSacnNode::udpReceive()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// wrap a PDU io stream around the QNetworkDatagram data buffer
|
// wrap a PDU i/o stream around the QNetworkDatagram data buffer
|
||||||
|
auto data = datagram.data();
|
||||||
auto stream = std::make_shared<ACN::PDU::pdu_stream>(
|
auto stream = std::make_shared<ACN::PDU::pdu_stream>(
|
||||||
reinterpret_cast<uint8_t*>(datagram.data().data()),
|
reinterpret_cast<uint8_t*>(data.data()), data.length());
|
||||||
datagram.data().length());
|
|
||||||
UdpPayloadReceiver(stream);
|
UdpPayloadReceiver(stream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user