From eaebc23452813a8709d2bbb4d17fddb1b4f29d91 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 15 Nov 2016 12:13:40 +0100 Subject: Increase compiler warnings, fix a lot of those instances - Add explicit casts - Comment out unused params - Remove ignored const return types --- src/server/connectionframe/connectionframe.cpp | 2 +- src/server/connectionframe/connectionframe.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/connectionframe') diff --git a/src/server/connectionframe/connectionframe.cpp b/src/server/connectionframe/connectionframe.cpp index 205433b..85d2e32 100644 --- a/src/server/connectionframe/connectionframe.cpp +++ b/src/server/connectionframe/connectionframe.cpp @@ -319,7 +319,7 @@ void ConnectionFrame::paintEvent(QPaintEvent *event) * Handle timer event. * @param event */ -void ConnectionFrame::timerEvent(QTimerEvent* event) +void ConnectionFrame::timerEvent(QTimerEvent* /* event */ ) { if (_client == NULL) return; diff --git a/src/server/connectionframe/connectionframe.h b/src/server/connectionframe/connectionframe.h index 2549ae8..7f338a8 100644 --- a/src/server/connectionframe/connectionframe.h +++ b/src/server/connectionframe/connectionframe.h @@ -61,13 +61,13 @@ public: const QPixmap& getFramePixmap() const { return _remoteScreen; } void assignClient(Client *client); void setSelection(bool selected); - const inline bool isSelected() const { return _isSelected; } + inline bool isSelected() { return _isSelected; } const QString& computerId() const { return _computerId; } void setComputerId(QString computerId) { if (_client != NULL) return; _computerId = computerId; updateLabels(); } Client* client() const { return _client; } - inline const bool isTutor() const { return _isTutor; } + inline bool isTutor() { return _isTutor; } void setTutor(bool b); protected: -- cgit v1.2.3-55-g7522