QtSingleApplication: compiler warning about enum comparison

Compiler outputs a warning because of comparison between
QLocalSocket::LocalSocketState and QAbstractSocket::SocketState.

Change-Id: Idbae5c3c32a32324e07972e0bb0808fc40ef7624
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Philippe Steinmann 2017-09-14 05:14:38 +02:00
parent 1fca9c330d
commit a8dda66d77

View File

@ -177,7 +177,7 @@ void QtLocalPeer::receiveConnection()
return;
while (true) {
if (socket->state() == QAbstractSocket::UnconnectedState) {
if (socket->state() == QLocalSocket::UnconnectedState) {
qWarning("QtLocalPeer: Peer disconnected");
delete socket;
return;