aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmldebug
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2016-11-01 23:03:38 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-04-05 05:13:43 +0000
commitb34dc8fdb270cda85881d0b8b407fd6edc2dc911 (patch)
tree8a3b3cc317f3a8e6fb1e492527196101fac33e30 /src/libs/qmldebug
parent8b956868bb4e802448f85f28fff06763df5e1086 (diff)
Cast enum to the an integer type before streaming out to QDataStream
We stream in as int or as qint32, so this is symmetric. Change-Id: Ic46ff326a6ba46bc877cfffd148325c21241f3b1 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/qmldebug')
-rw-r--r--src/libs/qmldebug/qmlenginecontrolclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmldebug/qmlenginecontrolclient.cpp b/src/libs/qmldebug/qmlenginecontrolclient.cpp
index 8ac5aa2efb..53a3ac4756 100644
--- a/src/libs/qmldebug/qmlenginecontrolclient.cpp
+++ b/src/libs/qmldebug/qmlenginecontrolclient.cpp
@@ -106,7 +106,7 @@ void QmlEngineControlClient::sendCommand(QmlEngineControlClient::CommandType com
{
QByteArray data;
QDataStream stream(&data, QIODevice::WriteOnly);
- stream << command << engineId;
+ stream << int(command) << engineId;
QmlDebugClient::sendMessage(data);
}