summaryrefslogtreecommitdiffstats
path: root/examples/network/threadedfortuneserver/fortunethread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/threadedfortuneserver/fortunethread.cpp')
-rw-r--r--examples/network/threadedfortuneserver/fortunethread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/threadedfortuneserver/fortunethread.cpp b/examples/network/threadedfortuneserver/fortunethread.cpp
index 89a2acc550..8bef57599e 100644
--- a/examples/network/threadedfortuneserver/fortunethread.cpp
+++ b/examples/network/threadedfortuneserver/fortunethread.cpp
@@ -6,7 +6,7 @@
#include <QtNetwork>
//! [0]
-FortuneThread::FortuneThread(int socketDescriptor, const QString &fortune, QObject *parent)
+FortuneThread::FortuneThread(qintptr socketDescriptor, const QString &fortune, QObject *parent)
: QThread(parent), socketDescriptor(socketDescriptor), text(fortune)
{
}
@@ -25,7 +25,7 @@ void FortuneThread::run()
QByteArray block;
QDataStream out(&block, QIODevice::WriteOnly);
- out.setVersion(QDataStream::Qt_4_0);
+ out.setVersion(QDataStream::Qt_6_5);
out << text;
//! [3] //! [4]