summaryrefslogtreecommitdiffstats
path: root/src/client/net/serverconnection.h
diff options
context:
space:
mode:
authorSimon Rettberg2018-07-24 13:08:25 +0200
committerSimon Rettberg2018-07-24 13:08:25 +0200
commit9ba63d1460db41c219b638212b42476164fcfdff (patch)
tree55e3249c18c50ec8e90278e639732988845c990c /src/client/net/serverconnection.h
parent[server] Fix logic error (diff)
downloadpvs2-9ba63d1460db41c219b638212b42476164fcfdff.tar.gz
pvs2-9ba63d1460db41c219b638212b42476164fcfdff.tar.xz
pvs2-9ba63d1460db41c219b638212b42476164fcfdff.zip
Update code style, fix compiler warnings
- Use nullptr instead of NULL for better warnings in case of mistakes - Get rid of VLAs which are not in C++11 actually - Fix implicit signed <-> unsigned mismatches by adding checks and casts
Diffstat (limited to 'src/client/net/serverconnection.h')
-rw-r--r--src/client/net/serverconnection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/net/serverconnection.h b/src/client/net/serverconnection.h
index 9db9b02..f5f6264 100644
--- a/src/client/net/serverconnection.h
+++ b/src/client/net/serverconnection.h
@@ -38,7 +38,7 @@ public:
~ServerConnection();
inline bool isConnected() const
{
- return _socket != NULL && _socket->state() == QAbstractSocket::ConnectedState;
+ return _socket != nullptr && _socket->state() == QAbstractSocket::ConnectedState;
}
const inline QString getPeerAdress() const