diff options
| author | Philip Kaufmann <[email protected]> | 2015-07-06 08:11:34 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2015-07-07 06:53:43 +0200 |
| commit | 5e058e74179f0e4ad62841ca82536f61b4673a1d (patch) | |
| tree | fca1ea7a9c5cd58ff93e0f088a02f1a8dea21b7b /src/qt/clientmodel.cpp | |
| parent | Merge pull request #6329 (diff) | |
| download | discoin-5e058e74179f0e4ad62841ca82536f61b4673a1d.tar.xz discoin-5e058e74179f0e4ad62841ca82536f61b4673a1d.zip | |
[Qt] constify foreach uses where possible
- this doesn't replace BOOST_FOREACH, it just makes used arguments const
where possible
Diffstat (limited to 'src/qt/clientmodel.cpp')
| -rw-r--r-- | src/qt/clientmodel.cpp | 6 |
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; } |