use std::make_shared to construct the shared pointer
This commit is contained in:
parent
1904dacea9
commit
5220fa5b3d
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue