diff options
Diffstat (limited to 'examples/network/threadedfortuneserver/fortuneserver.cpp')
-rw-r--r-- | examples/network/threadedfortuneserver/fortuneserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/threadedfortuneserver/fortuneserver.cpp b/examples/network/threadedfortuneserver/fortuneserver.cpp index 73d7e22531..a93bbc7058 100644 --- a/examples/network/threadedfortuneserver/fortuneserver.cpp +++ b/examples/network/threadedfortuneserver/fortuneserver.cpp @@ -72,7 +72,7 @@ FortuneServer::FortuneServer(QObject *parent) //! [1] void FortuneServer::incomingConnection(qintptr socketDescriptor) { - QString fortune = fortunes.at(QRandomGenerator::global()->bounded(fortunes.size())); + QString fortune = fortunes.at(QRandomGenerator::global()->bounded(int(fortunes.size()))); FortuneThread *thread = new FortuneThread(socketDescriptor, fortune, this); connect(thread, &FortuneThread::finished, thread, &FortuneThread::deleteLater); thread->start(); |