projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b32f752
)
Proper foreach
author
Roeland Jago Douma
<rullzer@owncloud.com>
Thu, 29 Oct 2015 13:00:28 +0000
(14:00 +0100)
committer
Roeland Jago Douma
<rullzer@owncloud.com>
Thu, 29 Oct 2015 14:42:25 +0000
(15:42 +0100)
src/gui/share.cpp
patch
|
blob
|
history
diff --git
a/src/gui/share.cpp
b/src/gui/share.cpp
index 8e63d00a5a750e995f8fab13b738d2f03c9a9046..fcd5cdb354b9a45a6adbc1a0885e7e4e35499f08 100644
(file)
--- 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();