1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Remove QJson usage from ShortLinkHelper

This commit is contained in:
Uwe L. Korn
2014-04-13 21:20:37 +01:00
parent 59b10b725c
commit bfeed9daba

View File

@@ -28,8 +28,6 @@
#include "Source.h" #include "Source.h"
#include "Track.h" #include "Track.h"
#include <qjson/serializer.h>
namespace Tomahawk { namespace Tomahawk {
namespace Utils { namespace Utils {
@@ -87,8 +85,7 @@ ShortLinkHelper::shortLink( const Tomahawk::playlist_ptr& pl )
QVariantMap jspf; QVariantMap jspf;
jspf["playlist"] = m; jspf["playlist"] = m;
QJson::Serializer s; QByteArray msg = TomahawkUtils::toJson( jspf );
QByteArray msg = s.serialize( jspf );
// No built-in Qt facilities for doing a FORM POST. So we build the payload ourselves... // No built-in Qt facilities for doing a FORM POST. So we build the payload ourselves...
const QByteArray boundary = "----------------------------2434992cccab"; const QByteArray boundary = "----------------------------2434992cccab";