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

Range-based for loops not supported in GCC 4.4.

This commit is contained in:
John Maguire 2012-11-28 17:34:54 +01:00
parent e14334075c
commit bd899b382d
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ void CloudStream::truncate(long) {
} }
void CloudStream::SSLErrors(const QList<QSslError>& errors) { void CloudStream::SSLErrors(const QList<QSslError>& errors) {
for (const QSslError& error : errors) { foreach (const QSslError& error, errors) {
qLog(Debug) << error.error() << error.errorString(); qLog(Debug) << error.error() << error.errorString();
qLog(Debug) << error.certificate(); qLog(Debug) << error.certificate();
} }

View File

@ -111,7 +111,7 @@ void UbuntuOneService::FileListRequestFinished(QNetworkReply* reply) {
QVariantMap result = parser.parse(data).toMap(); QVariantMap result = parser.parse(data).toMap();
QVariantList children = result["children"].toList(); QVariantList children = result["children"].toList();
for (const QVariant& c : children) { foreach (const QVariant& c, children) {
QVariantMap child = c.toMap(); QVariantMap child = c.toMap();
if (child["kind"].toString() == "file") { if (child["kind"].toString() == "file") {
MaybeAddFileToDatabase(child); MaybeAddFileToDatabase(child);