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:
@@ -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";
|
||||||
|
Reference in New Issue
Block a user