summaryrefslogtreecommitdiffstats
path: root/examples/network/threadedfortuneserver
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/threadedfortuneserver')
-rw-r--r--examples/network/threadedfortuneserver/fortunethread.cpp2
-rw-r--r--examples/network/threadedfortuneserver/fortunethread.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/network/threadedfortuneserver/fortunethread.cpp b/examples/network/threadedfortuneserver/fortunethread.cpp
index 89a2acc550..27050e17bd 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)
{
}
diff --git a/examples/network/threadedfortuneserver/fortunethread.h b/examples/network/threadedfortuneserver/fortunethread.h
index e93a67a37a..7dae6f2e12 100644
--- a/examples/network/threadedfortuneserver/fortunethread.h
+++ b/examples/network/threadedfortuneserver/fortunethread.h
@@ -13,7 +13,7 @@ class FortuneThread : public QThread
Q_OBJECT
public:
- FortuneThread(int socketDescriptor, const QString &fortune, QObject *parent);
+ FortuneThread(qintptr socketDescriptor, const QString &fortune, QObject *parent);
void run() override;
@@ -21,7 +21,7 @@ signals:
void error(QTcpSocket::SocketError socketError);
private:
- int socketDescriptor;
+ qintptr socketDescriptor;
QString text;
};
//! [0]