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
1 changed files with 2 additions and 2 deletions

View File

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