Change member-initializer order to fix warnings

This commit is contained in:
Simon Walton 2019-01-16 12:58:13 -08:00
parent b53fcb2c3d
commit 024cb70fce

View file

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