Remove superfluous handle assignment in QLocalSocket::connectToServer()

The handle is already assigned by QLocalSocket::setSocketDescriptor().

Change-Id: I695cfa31f3d14a3a9eef2fb79d23e9651616e8a8
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Benjamin Terrier 2017-04-05 01:18:14 +02:00 committed by Benjamin Terrier
parent 411398aab4
commit ea4c4691f7

View File

@ -183,10 +183,8 @@ void QLocalSocket::connectToServer(OpenMode openMode)
}
// we have a valid handle
if (setSocketDescriptor((qintptr)localSocket, ConnectedState, openMode)) {
d->handle = localSocket;
if (setSocketDescriptor((qintptr)localSocket, ConnectedState, openMode))
emit connected();
}
}
// This is reading from the buffer