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/client/vnc/vncserver.cpp | |
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/client/vnc/vncserver.cpp')
-rw-r--r-- | src/client/vnc/vncserver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/vnc/vncserver.cpp b/src/client/vnc/vncserver.cpp index 496a84d..165ba6d 100644 --- a/src/client/vnc/vncserver.cpp +++ b/src/client/vnc/vncserver.cpp @@ -34,7 +34,7 @@ static QString makePassword(int len = 10) { char pass[len]; for (int i = 0; i < len; ++i) - pass[i] = 43 + qrand() % 80; + pass[i] = (char)(43 + qrand() % 80); return QString::fromUtf8(pass, len); } @@ -167,7 +167,7 @@ void VncServer::stop() * after 3 seconds... * @param event */ -void VncServer::timerEvent(QTimerEvent *event) +void VncServer::timerEvent(QTimerEvent * /* event */ ) { // Error timeout (3s), tell server that vnc setup failed this->stop(); @@ -222,7 +222,7 @@ void VncServer::onStdErr() * @brief VncServer::onError * @param error */ -void VncServer::onError(QProcess::ProcessError error) +void VncServer::onError(QProcess::ProcessError /* error */ ) { this->stop(); emit started(0, _ropass, _rwpass); @@ -232,7 +232,7 @@ void VncServer::onError(QProcess::ProcessError error) * @brief VncServer::onFinished * @param exitCode */ -void VncServer::onFinished(int exitCode) +void VncServer::onFinished(int /* exitCode */ ) { this->stop(); emit started(0, _ropass, _rwpass); |