diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-02-08 15:13:45 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-02-08 14:27:50 +0000 |
commit | 62cf41dba5d037fb51224814dde12ad174ce4e72 (patch) | |
tree | f31d567d0cc6dfe3d0fbc695421bd2d1be8995a3 /src/qmldebug | |
parent | b555f45c10a050be9410f9dc6286a44753cc7d98 (diff) |
QmlDebug: Use types with fixed length for QDataStream
Change-Id: Ieb97a7137e9b7508d14e4dd9992850e3ffe1df7e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qmldebug')
-rw-r--r-- | src/qmldebug/qqmlenginecontrolclient.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmldebug/qqmlenginecontrolclient.cpp b/src/qmldebug/qqmlenginecontrolclient.cpp index 3f75298e51..fef4c81d93 100644 --- a/src/qmldebug/qqmlenginecontrolclient.cpp +++ b/src/qmldebug/qqmlenginecontrolclient.cpp @@ -99,8 +99,8 @@ void QQmlEngineControlClient::messageReceived(const QByteArray &data) { Q_D(QQmlEngineControlClient); QPacket stream(d->connection->currentDataStreamVersion(), data); - int message; - int id; + qint32 message; + qint32 id; QString name; stream >> message >> id; @@ -146,7 +146,7 @@ void QQmlEngineControlClientPrivate::sendCommand( { Q_Q(QQmlEngineControlClient); QPacket stream(connection->currentDataStreamVersion()); - stream << int(command) << engineId; + stream << static_cast<qint32>(command) << engineId; q->sendMessage(stream.data()); } |