From 6d80f3d756db3cbdf8e835529c35bd478cc4de69 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 29 Oct 2015 14:00:28 +0100 Subject: [PATCH] Proper foreach --- src/gui/share.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2