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/server/net/client.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/server/net/client.h')
-rw-r--r-- | src/server/net/client.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/server/net/client.h b/src/server/net/client.h index 81f5346..9bbc23f 100644 --- a/src/server/net/client.h +++ b/src/server/net/client.h @@ -30,19 +30,19 @@ public: ~Client(); // Getters - inline const bool isAuthed() const { return _authed == 2; } + inline bool isAuthed() { return _authed == 2; } inline const QString& name() const { return _name; } inline const QString& host() const { return _host; } inline const QString ip() const { return _socket->peerAddress().toString(); } - inline const int id() const { return _id; } - inline const bool isActiveVncClient() const { return _isActiveVncClient; } - inline const bool isActiveVncServer() const { return _vncPort > 0; } - inline const bool isLocked() const { return _locked; } - inline const int desiredProjectionSource() { return _desiredSource; } - inline const int projectionSource() const { return _projectionSource; } - inline const int isExamMode() const { return _isExamMode; } - inline const bool wantsAttention() const { return _wantsAttention; } - inline const void removeAttention() { if (!_wantsAttention) return; removeAttentionInternal(); } + inline int id() { return _id; } + inline bool isActiveVncClient() { return _isActiveVncClient; } + inline bool isActiveVncServer() { return _vncPort > 0; } + inline bool isLocked() { return _locked; } + inline int desiredProjectionSource() { return _desiredSource; } + inline int projectionSource() { return _projectionSource; } + inline int isExamMode() { return _isExamMode; } + inline bool wantsAttention() { return _wantsAttention; } + inline void removeAttention() { if (!_wantsAttention) return; removeAttentionInternal(); } // Setters inline void setTutor(bool enable) { _isTutor = enable; } |