summaryrefslogtreecommitdiffstats
path: root/src/client/vnc/vncserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/vnc/vncserver.cpp')
-rw-r--r--src/client/vnc/vncserver.cpp8
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);