From ae73e074b1d5a94a3975fc93c883840ab786ff0c Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Fri, 1 May 2020 15:12:15 +0200 Subject: [PATCH] Fix method invocation ambiguity --- src/player/CodecsComponent.cpp | 6 +++--- src/player/CodecsComponent.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/player/CodecsComponent.cpp b/src/player/CodecsComponent.cpp index 7baec8c4d..d32e2c2af 100644 --- a/src/player/CodecsComponent.cpp +++ b/src/player/CodecsComponent.cpp @@ -685,9 +685,9 @@ static Downloader::HeaderList getPlexHeaders() Downloader::HeaderList headers; QString auth = SystemComponent::Get().authenticationToken(); if (auth.size()) - headers.append({"X-Plex-Token", auth}); - headers.append({"X-Plex-Product", WITH_CODECS ? "Plex Media Player" : "openpmp"}); - headers.append({"X-Plex-Platform", "Konvergo"}); + headers.append(Downloader::Header{"X-Plex-Token", auth}); + headers.append(Downloader::Header{"X-Plex-Product", WITH_CODECS ? "Plex Media Player" : "openpmp"}); + headers.append(Downloader::Header{"X-Plex-Platform", "Konvergo"}); return headers; } diff --git a/src/player/CodecsComponent.h b/src/player/CodecsComponent.h index ff0a8b3d2..0b39fe35f 100644 --- a/src/player/CodecsComponent.h +++ b/src/player/CodecsComponent.h @@ -75,7 +75,8 @@ class Downloader : public QObject { Q_OBJECT public: - typedef QList> HeaderList; + typedef QPair Header; + typedef QList
HeaderList; explicit Downloader(QVariant userData, const QUrl& url, const HeaderList& headers, QObject* parent); Q_SIGNALS: void done(QVariant userData, bool success, const QByteArray& data);