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:
parent
e14334075c
commit
bd899b382d
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user