use reinterpret_cast on data() instead of c style cast on constData() that silently removed the const.
This commit is contained in:
parent
5220fa5b3d
commit
ce1e17e9fc
|
@ -125,7 +125,7 @@ void QSacnNode::udpReceive()
|
||||||
|
|
||||||
// wrap a PDU io stream around the QNetworkDatagram data buffer
|
// wrap a PDU io stream around the QNetworkDatagram data buffer
|
||||||
auto stream = std::make_shared<ACN::PDU::pdu_stream>(
|
auto stream = std::make_shared<ACN::PDU::pdu_stream>(
|
||||||
(uint8_t*)datagram.data().constData(),
|
reinterpret_cast<uint8_t*>(datagram.data().data()),
|
||||||
datagram.data().length());
|
datagram.data().length());
|
||||||
UdpPayloadReceiver(stream);
|
UdpPayloadReceiver(stream);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue