summaryrefslogtreecommitdiffstats
path: root/examples/network/threadedfortuneserver/fortunethread.h
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2023-01-13 16:58:37 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2023-01-17 16:15:11 +0100
commit45717db7a59b6041c907e011e51782922fbccff3 (patch)
tree5c23a781688645c961adc85f41ec264121b2f67a /examples/network/threadedfortuneserver/fortunethread.h
parent0280b7eb96d82815c4f60e7300183ccb14c5d6f1 (diff)
Threaded Fortune Example: update example to use qintptr for descriptors
Pick-to: 6.5 Task-number: QTBUG-108875 Change-Id: Ie635a3d2c4c61a59547e8fed0ec84da8538968a3 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/network/threadedfortuneserver/fortunethread.h')
-rw-r--r--examples/network/threadedfortuneserver/fortunethread.h4
1 files changed, 2 insertions, 2 deletions
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]