diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-01-16 14:11:53 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-17 11:35:59 +0100 |
commit | 6cd724787722e235abdbe3423b6519cb6a96cc01 (patch) | |
tree | 7e97d6d524493bbed6a4bb960b8c99ee0e795694 /src/declarative/debugger | |
parent | e8664368c608913cb36d0a80980f8d7fce5e2eb6 (diff) |
Debugger: Simplify protocol of QDebugMessageService
Change-Id: I3f97a344b8d0e0d73a75e84310c1e8ed59573ee7
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'src/declarative/debugger')
-rw-r--r-- | src/declarative/debugger/qdebugmessageservice.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/declarative/debugger/qdebugmessageservice.cpp b/src/declarative/debugger/qdebugmessageservice.cpp index 9b764d5ac4..e7e8c28781 100644 --- a/src/declarative/debugger/qdebugmessageservice.cpp +++ b/src/declarative/debugger/qdebugmessageservice.cpp @@ -66,7 +66,7 @@ public: QDebugMessageService::QDebugMessageService(QObject *parent) : QDeclarativeDebugService(*(new QDebugMessageServicePrivate()), - QLatin1String("DebugMessages"), 1, parent) + QLatin1String("DebugMessages"), 2, parent) { Q_D(QDebugMessageService); @@ -89,13 +89,9 @@ void QDebugMessageService::sendDebugMessage(QtMsgType type, const char *buf) //We do not want to alter the message handling mechanism //We just eavesdrop and forward the messages to a port //only if a client is connected to it. - QByteArray debugMessage; - QDataStream rs(&debugMessage, QIODevice::WriteOnly); - rs << type << QString::fromLocal8Bit(buf).toUtf8(); - QByteArray message; QDataStream ws(&message, QIODevice::WriteOnly); - ws << QByteArray("MESSAGE") << debugMessage; + ws << QByteArray("MESSAGE") << type << QString::fromLocal8Bit(buf).toUtf8(); sendMessage(message); if (d->oldMsgHandler) |