Pass udt::Socket pointer in initializer-list for udt::Connection

This commit is contained in:
Simon Walton 2019-01-16 12:08:02 -08:00
parent fd09180776
commit b53fcb2c3d

View file

@ -33,7 +33,8 @@ using namespace std::chrono;
Connection::Connection(Socket* parentSocket, HifiSockAddr destination, std::unique_ptr<CongestionControl> congestionControl) :
_parentSocket(parentSocket),
_destination(destination),
_congestionControl(move(congestionControl))
_congestionControl(move(congestionControl)),
QObject(parentSocket)
{
Q_ASSERT_X(parentSocket, "Connection::Connection", "Must be called with a valid Socket*");