From 5e058e74179f0e4ad62841ca82536f61b4673a1d Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Mon, 6 Jul 2015 08:11:34 +0200 Subject: [Qt] constify foreach uses where possible - this doesn't replace BOOST_FOREACH, it just makes used arguments const where possible --- src/qt/clientmodel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qt/clientmodel.cpp') 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; } -- cgit v1.2.3