1
0
Fork 0

use reinterpret_cast on data() instead of c style cast on constData() that silently removed the const.

This commit is contained in:
Kevin Matz 2022-06-11 11:25:18 -04:00
parent 5220fa5b3d
commit ce1e17e9fc
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ void QSacnNode::udpReceive()
// wrap a PDU io stream around the QNetworkDatagram data buffer
auto stream = std::make_shared<ACN::PDU::pdu_stream>(
(uint8_t*)datagram.data().constData(),
reinterpret_cast<uint8_t*>(datagram.data().data()),
datagram.data().length());
UdpPayloadReceiver(stream);
}