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