summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Steinmann <philippe.steinmann@gmail.com>2017-09-14 05:14:38 +0200
committerPhilippe Steinmann <philippe.steinmann@gmail.com>2017-09-14 14:21:57 +0000
commita8dda66d7738cde9042b87db27993f710ae3eeeb (patch)
tree2829b22d37bb56399fd40dc544ffaa38feb11e6f
parent1fca9c330d8548d84fccb66407fbaf3aae122d17 (diff)
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>
-rw-r--r--qtsingleapplication/src/qtlocalpeer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtsingleapplication/src/qtlocalpeer.cpp b/qtsingleapplication/src/qtlocalpeer.cpp
index f69463a..f3c4546 100644
--- a/qtsingleapplication/src/qtlocalpeer.cpp
+++ b/qtsingleapplication/src/qtlocalpeer.cpp
@@ -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;