1
0
Fork 0

use std::make_shared to construct the shared pointer

This commit is contained in:
Kevin Matz 2022-06-11 11:23:41 -04:00
parent 1904dacea9
commit 5220fa5b3d
1 changed files with 2 additions and 2 deletions

View File

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