summaryrefslogtreecommitdiffstats
path: root/src/client/connectwindow/connectwindow.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2016-11-15 12:13:40 +0100
committerSimon Rettberg2016-11-15 12:13:40 +0100
commiteaebc23452813a8709d2bbb4d17fddb1b4f29d91 (patch)
tree956155fc2fc5b58498a4c494cc59b7adc68bc76a /src/client/connectwindow/connectwindow.cpp
parent[server] Rewrite positioning logic of connection frames (diff)
downloadpvs2-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/connectwindow/connectwindow.cpp')
-rw-r--r--src/client/connectwindow/connectwindow.cpp7
1 files changed, 5 insertions, 2 deletions
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;
}