mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Drop QJson usage from Msg
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "Msg_p.h"
|
#include "Msg_p.h"
|
||||||
|
|
||||||
#include <qjson/parser.h>
|
#include "utils/TomahawkUtils.h"
|
||||||
|
|
||||||
#include <QtEndian>
|
#include <QtEndian>
|
||||||
|
|
||||||
@@ -123,9 +123,8 @@ Msg::json()
|
|||||||
|
|
||||||
if( !d->json_parsed )
|
if( !d->json_parsed )
|
||||||
{
|
{
|
||||||
QJson::Parser p;
|
|
||||||
bool ok;
|
bool ok;
|
||||||
d->json = p.parse( d->payload, &ok );
|
d->json = TomahawkUtils::parseJson( d->payload, &ok );
|
||||||
d->json_parsed = true;
|
d->json_parsed = true;
|
||||||
}
|
}
|
||||||
return d->json;
|
return d->json;
|
||||||
|
@@ -21,10 +21,7 @@
|
|||||||
#include "network/Msg_p.h"
|
#include "network/Msg_p.h"
|
||||||
#include "network/Servent.h"
|
#include "network/Servent.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
#include "utils/TomahawkUtils.h"
|
||||||
#include <qjson/parser.h>
|
|
||||||
#include <qjson/serializer.h>
|
|
||||||
#include <qjson/qobjecthelper.h>
|
|
||||||
|
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
#include <QFuture>
|
#include <QFuture>
|
||||||
@@ -127,8 +124,7 @@ MsgProcessor::process( msg_ptr msg, quint32 mode, quint32 threshold )
|
|||||||
{
|
{
|
||||||
// qDebug() << "MsgProcessor::PARSING JSON";
|
// qDebug() << "MsgProcessor::PARSING JSON";
|
||||||
bool ok;
|
bool ok;
|
||||||
QJson::Parser parser;
|
msg->d_func()->json = TomahawkUtils::parseJson( msg->payload(), &ok );
|
||||||
msg->d_func()->json = parser.parse( msg->payload(), &ok );
|
|
||||||
msg->d_func()->json_parsed = true;
|
msg->d_func()->json_parsed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user