[Qt] constify foreach uses where possible

- this doesn't replace BOOST_FOREACH, it just makes used arguments const
  where possible
This commit is contained in:
Philip Kaufmann
2015-07-06 08:11:34 +02:00
parent d0a10c1959
commit 5e058e7417
4 changed files with 9 additions and 14 deletions

View File

@@ -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;
}