aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-07-09 10:53:35 +0200
committerWladimir J. van der Laan <[email protected]>2015-07-09 10:54:21 +0200
commitaa565327ec74e5ce6eb350c01f903d5db8e6d468 (patch)
treedbe7a8084694db5715089b787472a2a4f1cae4d4 /src/qt/clientmodel.cpp
parentMerge pull request #6387 (diff)
parent[Qt] constify foreach uses where possible (diff)
downloaddiscoin-aa565327ec74e5ce6eb350c01f903d5db8e6d468.tar.xz
discoin-aa565327ec74e5ce6eb350c01f903d5db8e6d468.zip
Merge pull request #6378
5e058e7 [Qt] constify foreach uses where possible (Philip Kaufmann)
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index 8e29cdeb0..5ac11324d 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -53,9 +53,9 @@ int ClientModel::getNumConnections(unsigned int flags) const
return vNodes.size();
int nNum = 0;
- BOOST_FOREACH(CNode* pnode, vNodes)
- if (flags & (pnode->fInbound ? CONNECTIONS_IN : CONNECTIONS_OUT))
- nNum++;
+ BOOST_FOREACH(const CNode* pnode, vNodes)
+ if (flags & (pnode->fInbound ? CONNECTIONS_IN : CONNECTIONS_OUT))
+ nNum++;
return nNum;
}