Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit ae73e07

Browse files
dschmidtmseeley
authored andcommitted
Fix method invocation ambiguity
1 parent 5d099a1 commit ae73e07

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/player/CodecsComponent.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,9 @@ static Downloader::HeaderList getPlexHeaders()
685685
Downloader::HeaderList headers;
686686
QString auth = SystemComponent::Get().authenticationToken();
687687
if (auth.size())
688-
headers.append({"X-Plex-Token", auth});
689-
headers.append({"X-Plex-Product", WITH_CODECS ? "Plex Media Player" : "openpmp"});
690-
headers.append({"X-Plex-Platform", "Konvergo"});
688+
headers.append(Downloader::Header{"X-Plex-Token", auth});
689+
headers.append(Downloader::Header{"X-Plex-Product", WITH_CODECS ? "Plex Media Player" : "openpmp"});
690+
headers.append(Downloader::Header{"X-Plex-Platform", "Konvergo"});
691691
return headers;
692692
}
693693

src/player/CodecsComponent.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ class Downloader : public QObject
7575
{
7676
Q_OBJECT
7777
public:
78-
typedef QList<QPair<QString, QString>> HeaderList;
78+
typedef QPair<QString, QString> Header;
79+
typedef QList<Header> HeaderList;
7980
explicit Downloader(QVariant userData, const QUrl& url, const HeaderList& headers, QObject* parent);
8081
Q_SIGNALS:
8182
void done(QVariant userData, bool success, const QByteArray& data);

0 commit comments

Comments
 (0)