diff --git a/src/gui/share.cpp b/src/gui/share.cpp index 8e63d00a5..fcd5cdb35 100644 --- a/src/gui/share.cpp +++ b/src/gui/share.cpp @@ -227,7 +227,7 @@ void ShareManager::slotSharesFetched(const QVariantMap &reply) QList> shares; - Q_FOREACH(auto share, tmpShares) { + foreach(const auto &share, tmpShares) { auto data = share.toMap(); auto shareType = data.value("share_type").toInt();