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/client/connectwindow/connectwindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/client/connectwindow') diff --git a/src/client/connectwindow/connectwindow.cpp b/src/client/connectwindow/connectwindow.cpp index 18ceb9c..b1f583a 100644 --- a/src/client/connectwindow/connectwindow.cpp +++ b/src/client/connectwindow/connectwindow.cpp @@ -114,6 +114,9 @@ void ConnectWindow::updateUserInterface() case InvalidSslHash: _ui->lblStatus->setText(tr("Invalid TLS hash: %1.").arg(_hashSslErrorCount)); break; + default: + _ui->lblStatus->setText(tr("Unknown state :-(")); + break; } } @@ -162,7 +165,7 @@ void ConnectWindow::doShow() * Gives the keyboard input focus to the input line. * @param event */ -void ConnectWindow::showEvent(QShowEvent* event) +void ConnectWindow::showEvent(QShowEvent* /* event */ ) { activateWindow(); raise(); @@ -341,7 +344,7 @@ void ConnectWindow::onComboBox_keyPressed(QKeyEvent* e) * If connection is closed set _pendingConnection = NULL. * @param connection */ -void ConnectWindow::onConnectionClosed(QObject* connection) +void ConnectWindow::onConnectionClosed(QObject* /* connection */ ) { _pendingConnection = NULL; } -- cgit v1.2.3-55-g7522