diff options
author | Simon Rettberg | 2016-11-15 12:13:40 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-11-15 12:13:40 +0100 |
commit | eaebc23452813a8709d2bbb4d17fddb1b4f29d91 (patch) | |
tree | 956155fc2fc5b58498a4c494cc59b7adc68bc76a /src/client/net/serverconnection.h | |
parent | [server] Rewrite positioning logic of connection frames (diff) | |
download | pvs2-eaebc23452813a8709d2bbb4d17fddb1b4f29d91.tar.gz pvs2-eaebc23452813a8709d2bbb4d17fddb1b4f29d91.tar.xz pvs2-eaebc23452813a8709d2bbb4d17fddb1b4f29d91.zip |
Increase compiler warnings, fix a lot of those instances
- Add explicit casts
- Comment out unused params
- Remove ignored const return types
Diffstat (limited to 'src/client/net/serverconnection.h')
-rw-r--r-- | src/client/net/serverconnection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/net/serverconnection.h b/src/client/net/serverconnection.h index 17fa20a..9db9b02 100644 --- a/src/client/net/serverconnection.h +++ b/src/client/net/serverconnection.h @@ -36,7 +36,7 @@ public: ServerConnection(const QString& host, const quint16 port, const QByteArray& sessionName, const QByteArray& certHash, bool autoConnect); void disconnectFromServer(); ~ServerConnection(); - const inline bool isConnected() const + inline bool isConnected() const { return _socket != NULL && _socket->state() == QAbstractSocket::ConnectedState; } |