1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Remove QJson usage from JSPF loader

This commit is contained in:
Uwe L. Korn 2014-04-12 13:40:20 +01:00
parent 0a0da836a2
commit e90175d054

View File

@ -32,8 +32,6 @@
#include <QDomDocument>
#include <QMessageBox>
#include <qjson/parser.h>
using namespace Tomahawk;
@ -125,13 +123,12 @@ JSPFLoader::networkError( QNetworkReply::NetworkError e )
void
JSPFLoader::gotBody()
{
QJson::Parser p;
bool retOk;
QVariantMap wrapper = p.parse( m_body, &retOk ).toMap();
QVariantMap wrapper = TomahawkUtils::parseJson( m_body, &retOk ).toMap();
if ( !retOk )
{
tLog() << "Failed to parse jspf json:" << p.errorString() << "on line" << p.errorLine();
tLog() << "Failed to parse jspf json: " << m_body;
return;
}