From 90279e6d2b70046aa74a44edcd934a1b74e26ec8 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 18 Sep 2015 16:51:01 +0200 Subject: [PATCH] QmlProfiler: Use QmlDebugStream for communication with server The server does the equivalent and using different data stream versions for encoding and decoding will lead to problems, eventually. Change-Id: I9e97525b4ba7f40b65b914c7f282e008435772a1 Reviewed-by: Joerg Bornemann --- src/libs/qmldebug/qmlprofilertraceclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/qmldebug/qmlprofilertraceclient.cpp b/src/libs/qmldebug/qmlprofilertraceclient.cpp index 0aa5cbbc33a..6c222e91a87 100644 --- a/src/libs/qmldebug/qmlprofilertraceclient.cpp +++ b/src/libs/qmldebug/qmlprofilertraceclient.cpp @@ -75,7 +75,7 @@ static const int GAP_TIME = 150; void QmlProfilerTraceClientPrivate::sendRecordingStatus(int engineId) { QByteArray ba; - QDataStream stream(&ba, QIODevice::WriteOnly); + QmlDebugStream stream(&ba, QIODevice::WriteOnly); stream << recording << engineId; // engineId -1 is OK. It means "all of them" if (recording) stream << requestedFeatures << flushInterval; @@ -187,7 +187,7 @@ void QmlProfilerTraceClient::stateChanged(State /*status*/) void QmlProfilerTraceClient::messageReceived(const QByteArray &data) { QByteArray rwData = data; - QDataStream stream(&rwData, QIODevice::ReadOnly); + QmlDebugStream stream(&rwData, QIODevice::ReadOnly); qint64 time; int messageType;