diff --git a/ext/clementine-tagreader/cloudstream.cpp b/ext/clementine-tagreader/cloudstream.cpp index 540319d0e..5f83df1b3 100644 --- a/ext/clementine-tagreader/cloudstream.cpp +++ b/ext/clementine-tagreader/cloudstream.cpp @@ -193,7 +193,7 @@ void CloudStream::truncate(long) { } void CloudStream::SSLErrors(const QList& errors) { - for (const QSslError& error : errors) { + foreach (const QSslError& error, errors) { qLog(Debug) << error.error() << error.errorString(); qLog(Debug) << error.certificate(); } diff --git a/src/internet/ubuntuoneservice.cpp b/src/internet/ubuntuoneservice.cpp index 508e4256d..3e82e1d7d 100644 --- a/src/internet/ubuntuoneservice.cpp +++ b/src/internet/ubuntuoneservice.cpp @@ -111,7 +111,7 @@ void UbuntuOneService::FileListRequestFinished(QNetworkReply* reply) { QVariantMap result = parser.parse(data).toMap(); QVariantList children = result["children"].toList(); - for (const QVariant& c : children) { + foreach (const QVariant& c, children) { QVariantMap child = c.toMap(); if (child["kind"].toString() == "file") { MaybeAddFileToDatabase(child);