replace boost_foreach

This commit is contained in:
Michel van Kessel
2020-12-28 17:28:05 +01:00
parent b9345ac0f3
commit 83b546163b
47 changed files with 394 additions and 360 deletions

View File

@@ -2,13 +2,13 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "peertablemodel.h"
#include <qt/peertablemodel.h>
#include "clientmodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#include <qt/clientmodel.h>
#include <qt/guiconstants.h>
#include <qt/guiutil.h>
#include "sync.h"
#include <sync.h>
#include <QDebug>
#include <QList>
@@ -64,7 +64,7 @@ public:
#if QT_VERSION >= 0x040700
cachedNodeStats.reserve(vNodes.size());
#endif
Q_FOREACH (CNode* pnode, vNodes)
for (CNode* pnode: vNodes)
{
CNodeCombinedStats stats;
stats.nodeStateStats.nMisbehavior = 0;
@@ -81,7 +81,7 @@ public:
TRY_LOCK(cs_main, lockMain);
if (lockMain)
{
BOOST_FOREACH(CNodeCombinedStats &stats, cachedNodeStats)
for(CNodeCombinedStats &stats: cachedNodeStats)
stats.fNodeStateStatsAvailable = GetNodeStateStats(stats.nodeStats.nodeid, stats.nodeStateStats);
}
}
@@ -93,7 +93,7 @@ public:
// build index map
mapNodeRows.clear();
int row = 0;
Q_FOREACH (const CNodeCombinedStats& stats, cachedNodeStats)
for (const CNodeCombinedStats& stats: cachedNodeStats)
mapNodeRows.insert(std::pair<NodeId, int>(stats.nodeStats.nodeid, row++));
}