[Pkg-owncloud-commits] [owncloud-client] 201/484: Proper foreach

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 6d80f3d756db3cbdf8e835529c35bd478cc4de69
Author: Roeland Jago Douma <rullzer at owncloud.com>
Date:   Thu Oct 29 14:00:28 2015 +0100

    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 8e63d00..fcd5cdb 100644
--- a/src/gui/share.cpp
+++ b/src/gui/share.cpp
@@ -227,7 +227,7 @@ void ShareManager::slotSharesFetched(const QVariantMap &reply)
 
     QList<QSharedPointer<Share>> shares;
 
-    Q_FOREACH(auto share, tmpShares) {
+    foreach(const auto &share, tmpShares) {
         auto data = share.toMap();
 
         auto shareType = data.value("share_type").toInt();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list