1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 03:09:57 +01:00

Remove another couple of C++11 range-based for loop.

This commit is contained in:
John Maguire 2012-11-29 11:49:26 +01:00
parent 644a12cea7
commit 3eb66ea8c2

View File

@ -93,7 +93,7 @@ QByteArray UbuntuOneAuthenticator::GenerateAuthorisationHeader(
<< Param("oauth_signature_method", "PLAINTEXT");
qSort(parameters.begin(), parameters.end());
QStringList encoded_params;
for (const Param& p : parameters) {
foreach (const Param& p, parameters) {
encoded_params << QString("%1=%2").arg(p.first, p.second);
}
@ -104,7 +104,7 @@ QByteArray UbuntuOneAuthenticator::GenerateAuthorisationHeader(
// Construct authorisation header
parameters << Param("oauth_signature", signature);
QStringList header_params;
for (const Param& p : parameters) {
foreach (const Param& p, parameters) {
header_params << QString("%1=\"%2\"").arg(p.first, p.second);
}
QString authorisation_header = header_params.join(", ");