summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/plugins/CurlInputPlugin.cxx4
-rw-r--r--src/input/plugins/QobuzClient.cxx12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx
index 409a2280f..a2c8e505b 100644
--- a/src/input/plugins/CurlInputPlugin.cxx
+++ b/src/input/plugins/CurlInputPlugin.cxx
@@ -404,8 +404,8 @@ CurlInputStream::CurlInputStream(EventLoop &event_loop, const char *_url,
{
request_headers.Append("Icy-Metadata: 1");
- for (const auto &i : headers)
- request_headers.Append((i.first + ":" + i.second).c_str());
+ for (const auto &[key, header] : headers)
+ request_headers.Append((key + ":" + header).c_str());
}
CurlInputStream::~CurlInputStream() noexcept
diff --git a/src/input/plugins/QobuzClient.cxx b/src/input/plugins/QobuzClient.cxx
index 0e47aee21..92e74c588 100644
--- a/src/input/plugins/QobuzClient.cxx
+++ b/src/input/plugins/QobuzClient.cxx
@@ -174,8 +174,8 @@ QobuzClient::MakeUrl(const char *object, const char *method,
uri += method;
QueryStringBuilder q;
- for (const auto &i : query)
- q(uri, i.first.c_str(), i.second.c_str());
+ for (const auto &[key, url] : query)
+ q(uri, key.c_str(), url.c_str());
q(uri, "app_id", app_id);
return uri;
@@ -195,11 +195,11 @@ QobuzClient::MakeSignedUrl(const char *object, const char *method,
QueryStringBuilder q;
std::string concatenated_query(object);
concatenated_query += method;
- for (const auto &i : query) {
- q(uri, i.first.c_str(), i.second.c_str());
+ for (const auto &[key, url] : query) {
+ q(uri, key.c_str(), url.c_str());
- concatenated_query += i.first;
- concatenated_query += i.second;
+ concatenated_query += key;
+ concatenated_query += url;
}
q(uri, "app_id", app_id);