Don't unnecessariy set localAddress in QNativeSocketEngine's nativeBind
The outer QNativeSocketEngine::bind() function will call fetchConnectionParameters() as soon as nativeBind() returns, so don't bother copying localAddress. Change-Id: Ice13e507ccb9c575a7d3bdf0b41394f35230b746 Reviewed-by: Richard J. Moore <rich@kde.org>
This commit is contained in:
parent
a0737f65a6
commit
2924279c23
@ -567,9 +567,6 @@ bool QNativeSocketEnginePrivate::nativeBind(const QHostAddress &address, quint16
|
||||
return false;
|
||||
}
|
||||
|
||||
localPort = port;
|
||||
localAddress = address;
|
||||
|
||||
#if defined (QNATIVESOCKETENGINE_DEBUG)
|
||||
qDebug("QNativeSocketEnginePrivate::nativeBind(%s, %i) == true",
|
||||
address.toString().toLatin1().constData(), port);
|
||||
|
@ -852,9 +852,6 @@ bool QNativeSocketEnginePrivate::nativeBind(const QHostAddress &a, quint16 port)
|
||||
return false;
|
||||
}
|
||||
|
||||
localPort = port;
|
||||
localAddress = address;
|
||||
|
||||
#if defined (QNATIVESOCKETENGINE_DEBUG)
|
||||
qDebug("QNativeSocketEnginePrivate::nativeBind(%s, %i) == true",
|
||||
address.toString().toLatin1().constData(), port);
|
||||
|
Loading…
x
Reference in New Issue
Block a user